You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since v2.24.4 (possibly before) some behaviour has changed in how docker compose resolves configuration.
It used to apply .env located in cwd, before traversing parent dirs to look for a docker-compose.yaml.
This has changed, as it will now traverse parent dirs and if it finds a docker-compose.yaml it will instead look for a .env in that directory.
Description
Since v2.24.4 (possibly before) some behaviour has changed in how
docker compose
resolves configuration.It used to apply
.env
located incwd
, before traversing parent dirs to look for adocker-compose.yaml
.This has changed, as it will now traverse parent dirs and if it finds a
docker-compose.yaml
it will instead look for a.env
in that directory.Steps To Reproduce
# ./root/.env COMPOSE_FILE=./subdir/docker-compose.yaml
./root
, rundocker compose config
- it used to be the config based on the subdir, but now it is based on the parent dir.Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: