Environment variables in .env files
Closed this issue · 1 comments
bdube commented
The example in README about using docker-compose config
to check for unset variables implies that when using -f path/to/docker-compose.yml
the .env
file will be picked up from the directory of docker-compose.yml
file. This does not appear to be the case.
Paths used with env_file
entries within docker-compose.yml
are taken to be relative to the project directory, but that does not seem to be the case for the way docker-compose
looks for the default .env
file.
This is unfortunate and makes working from the repository root directory more tedious without a script or alias helper.
bdube commented
Looks like this is bug docker/compose#7600