We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The .env file at the root of the repo has special use: https://docs.docker.com/compose/env-file/
The file is sourced when docker-compose is invoked, and the values affect docker-compose commands.
My suggestion is to move the contents of the current .env file to docker-compose*.yml, under a new environment: heading.
environment:
For reference: https://docs.docker.com/compose/compose-file/#/environment
The text was updated successfully, but these errors were encountered:
Would this PR address it? #37
Sorry, something went wrong.
#37 duplicates the environment variables twice. Would there be a better approach? .env is quite clean, even if not "right".
I was looking in more elegant way not using .env file but there is no good way to do it without duplicating vars :(.
No branches or pull requests
The .env file at the root of the repo has special use: https://docs.docker.com/compose/env-file/
The file is sourced when docker-compose is invoked, and the values affect docker-compose commands.
My suggestion is to move the contents of the current .env file to docker-compose*.yml, under a new
environment:
heading.For reference: https://docs.docker.com/compose/compose-file/#/environment
The text was updated successfully, but these errors were encountered: