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
When defining a environment based secret in an "inner" compose file, compose reports a validation error.
However, this only occurs if the environment variable is actually set.
I would expect to be able to include compose files that define top-level environment secrets.
Hopefully I've just made some other mistake!
Steps To Reproduce
Tried to make this a minimal example.
Encountered in a situation with a service that actually references the secret, but given that it is blowing up earlier this should hopefully be sufficient to reproduce.
Description
When defining a environment based secret in an "inner" compose file, compose reports a validation error.
However, this only occurs if the environment variable is actually set.
I would expect to be able to include compose files that define top-level environment secrets.
Hopefully I've just made some other mistake!
Steps To Reproduce
Tried to make this a minimal example.
Encountered in a situation with a service that actually references the secret, but given that it is blowing up earlier this should hopefully be sufficient to reproduce.
docker-compose.yml
./app/docker-compose.yml
If I run
I get the following error
If I then run
It correctly returns a valid template
Similarly, running
MY_ENV_VAR="anything" docker compose config
insideapp
works perfectly, and outputs:Compose Version
docker compose version
Docker Compose version v2.29.2-desktop.2
docker-compose version
Docker Compose version v2.29.2-desktop.2
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: