-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
"env_file" not working in Windows 10 #6965
Comments
so This is a common source of confusion with compose :P |
So it's should resolve to rename .env for more proper name, like .build_env. Of course it would document properly of docker-compose documentation so the env-file is not confused with .env file which is different thing. |
but when deploying on
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it had not recent activity during the stale period. |
I have a local .env file in the same directory as docker-compose.yml, but .env file is still not working |
Same here as @nighttiger1990 reported. Exactly the same project setup works flawlessly on Linux, but |
Description of the issue
I declare
env_file
property with valuedeploy.env
indocker-compose.yml
.But when docker compose up in Windows
deploy.env
file not readContext information (for bug reports)
Output of
docker-compose version
Output of
docker version
Output of
docker-compose config
(Make sure to add the relevant
-f
and other flags)Steps to reproduce the issue
deploy.env
file same location withdocker-compose.yml
docker compose -f docker-compose up -d
The DB_HOST variable is not set. Defaulting to a blank string
But on Centos 7 work perfectly
Additional: if i change
deploy.env
to.env
Windows work perfectlyAdditional information
My
deploy.env
My
docker-compose.yml
OS version / distribution,
docker-compose
install method, etc.The text was updated successfully, but these errors were encountered: