Dan Jacob on Nostr: Weird... docker-compose run not reading env file passed in as --env-file ...
Weird...
docker-compose run not reading env file passed in as --env-file
docker-compose --env-file .env run --rm app_server ./manage.py do_something
Works fine with docker-compose up (env_file is set in the docker-compose.yml). But docker-compose run ignores that setting, apparently.
Here's the thing though... docker run --env-file "works" but breaks if e.g. your .env variables are not properly escaped. But, the same file works absolutely fine with docker-compose up.😕
docker-compose run not reading env file passed in as --env-file
docker-compose --env-file .env run --rm app_server ./manage.py do_something
Works fine with docker-compose up (env_file is set in the docker-compose.yml). But docker-compose run ignores that setting, apparently.
Here's the thing though... docker run --env-file "works" but breaks if e.g. your .env variables are not properly escaped. But, the same file works absolutely fine with docker-compose up.😕