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
In compose 2.21.0 and earlier (I don't know in which version exactly the regression appeared) variables declared in custom env files were implicitelly exported (as variables defined in the .env file), i.e. you were not forced to write VAR_NAME=$VAR_NAME in the "env:" block of docker-compose.yaml
With compose 2.24.5 or 2.24.6 if you set VAR_NAME=value in a custom env file and declare env: - VAR_NAME (instead of env: -VAR_NAME=$VAR_NAME), the value of VAR_NAME will not be passed to the container.
With compose 2.21.0 the value of VAR_NAME is transmitted to the container without having to set again the value in the docker-compose.yaml file
Steps To Reproduce
Create a docker-compose.yaml with an include section
This fix has been included in Compose 2.24.7+. If you continue to have problems after upgrading, comment here and we can re-open the issue or create a new one as appropriate. Thanks for the report!
Description
In compose 2.21.0 and earlier (I don't know in which version exactly the regression appeared) variables declared in custom env files were implicitelly exported (as variables defined in the .env file), i.e. you were not forced to write VAR_NAME=$VAR_NAME in the "env:" block of docker-compose.yaml
With compose 2.24.5 or 2.24.6 if you set VAR_NAME=value in a custom env file and declare env: - VAR_NAME (instead of env: -VAR_NAME=$VAR_NAME), the value of VAR_NAME will not be passed to the container.
With compose 2.21.0 the value of VAR_NAME is transmitted to the container without having to set again the value in the docker-compose.yaml file
Steps To Reproduce
Create a docker-compose.yaml with an include section
In custom.env:
In ./module/docker-compose.yaml:
Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: