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.
Summary
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
Sep 16, 2025, 21:21
Have you done docker compose up -d after updating your .env file?