New issue
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
Add warning when use env_file
and environments
at the same time
#11799
Comments
service will use skphonesmart:
image: name:tag
env_file:
- .env.production.local
ports:
- 3001:3001
restart: always
depends_on:
- postgres_server
- adminer
networks:
- adminer-network service will ignore skphonesmart:
image: name:tag
env_file:
- .env.production.local
environment:
MY_PUBLIC_KEY: ${MY_PUBLIC_KEY}
ports:
- 3001:3001
restart: always
depends_on:
- postgres_server
- adminer
networks:
- adminer-network |
There's no reason to warn user about this, both are valid and there's many relevant scenario where user will use both.
it won't, but |
Description
Can we add warning when we use
env_file
andenvironments
at the same time?env_file
will not work andenvironments
will use default.env
instead.For most people, this is really waste time and I've seen so many Issues and Stackoverflow posts talking about this, I think adding a warning could solve the problem.
The text was updated successfully, but these errors were encountered: