Share and learn in the Docker community.
compose.yml (redacted):
services: ab: image: alpine
tmp/.env:
A=1 A1=$A
tmp/.env.override:
A=2 A1=$A
Command:
docker compose --env-file=tmp/.env --env-file=tmp/.env.override config --environment
Actual result:
A1=1 A=2
Expected:
A1=2 A=2
Thank for sharing your finding with the community.
If you want the developers to see this, then the right way to report it is as issue in the GitHub repository for the docker compose cli plugin: https://github.com/docker/compose/issues.
What is your compose version? Mine is 5.0.1 and I get the expected result.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.