Skip to content
Back

ENV vars not updating

  • 0
  • Self Hosted
Ivan
16 Sep, 2025, 21:18

When i do nano .env it shows _APP_DOMAIN_TARGET= as set to my domain, but when i do docker compose exec appwrite vars it shows _APP_DOMAIN_TARGET= as empty and everthing else in the env correct as it is written. I am hosting on Digital Ocean, i have tried restarting docker container many different ways, updating .env and restarting the whole droplet, noting has changed.

TL;DR
Developers are facing issues with environment variables not updating properly in their Docker container on Digital Ocean. Despite updating the .env file with the correct values, the variables are not being reflected when checking with `docker compose exec appwrite vars`. They have tried restarting the container and the whole droplet, but the problem persists. A suggestion included ensuring that `docker compose up -d` was done after updating the .env file. Solution: Make sure to run `docker compose up -d` after updating the .env file to ensure the changes take effect in the Docker container.
Kenny
16 Sep, 2025, 21:21

Have you done docker compose up -d after updating your .env file?

https://appwrite.io/docs/advanced/self-hosting/configuration/environment-variables

Ivan
16 Sep, 2025, 21:42

Yup, didn’t help. Also if it means anything I just made the droplet this morning using the button on DO marketplace

Ivan
16 Sep, 2025, 21:56

first is when i do docker compose exec appwrite vars, second is nano .envbecause of this my domain doesnt wanna work...

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more