Cannot set environment variables

Hi,

I am using Ubuntu 18.04.6 LTS, and Vaultwarden Version 2022.12.0

I am trying to set environment variables by using -e options with my docker run command (I do not use docker compose)

When I run “docker exec vaultwarden env”, I can see that my variables are set as I’d expect:

I have checked /root/Caddy/vw-data and there is no config.json or .env file

I am unable to access the admin panel with the provided token (“Invalid admin token”) or send email (SMTP Auth error), so it seems these variables are being overridden somewhere.

Does anyone have any suggestions please?

Fixed it - I was checking the wrong folder on the host, and there WAS a config.json file!