Specify the env file docker compose uses
You can use inheritance for this. If you have one “base” service where you set up the environment, all of your other services can inherit from that. Example: version: “2” services: base: env_file: – my_env.txt web: extends: service: base image: foo database: extends: service: base image: foo-db The above example has everything in the same … Read more