What is Nostr?
Dan Jacob /
npub1sms…0twk
2024-06-20 09:51:30

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.😕
Author Public Key
npub1smsgaq7lg7t38qygu3f4dlsv4kf07qv2qsjrkjku879katnmmy0snh0twk