This replaces the services_config.sh script.
https://linear.app/comm/issue/ENG-778/use-docker-compose-environment-file
Differential D3233
services: Use .env file for docker-compose • jim on Feb 16 2022, 12:09 PM. Authored by Tags None Referenced Files
Subscribers
Details This replaces the services_config.sh script. https://linear.app/comm/issue/ENG-778/use-docker-compose-environment-file Run launch scripts
Diff Detail
Event TimelineComment Actions I checked and it works. How does this work? Does docker-compose automatically sources .env file? Looks like it but correct me if I'm wrong. This is cool, I didn't know about this! Passing back to your queue to get answers but the idea looks great!
Comment Actions Yes, it doesn't actually source into environment variables but parses it as a file. So if you actually set the environment variables, they will override whatever is in the file. And for different configurations you can pass the --env-file flag explicitly. See https://docs.docker.com/compose/env-file/.
Comment Actions @jimpo, when responding to "Request changes" you should select "Re-request review" from the dropdown at the bottom. That way the diff goes to your reviewer's queue again, instead of being stuck on your queue. (This is why the status of the diff is currently "Needs Revision".)
|