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
[BUG] Variable interpolation is not working except for .env #11755
Comments
While it would be fantastic if variable interpolation applied to the https://docs.docker.com/compose/compose-file/compose-file-v3/#env_file
This is made a bit confusing because priority is given to
So you'll define your
Options:
|
Consider another example:
If I mean that bug exists even when |
Description
Any interpolation variables from something else than
.env
is not working; usingenv_file
and interpolating usingenvironment
As discussed in #11741
Steps To Reproduce
compose.yaml
example.env
.env
docker compose up --build -d
HOST_VAR_ONE
is usingDefault
and notInterpolatedVar
.`docker exec container-example printenv | grep -i var
.env
interpolation will work.Compose Version
Docker Environment
docker info
Tasks
The text was updated successfully, but these errors were encountered: