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
{{ message }}
Repository navigation
Env variable override not possible from host if default value present #3183
This is working as intended. Environment variables with values should not be overridden from the host values.
There is no way to achieve that yet. There will be in 1.7.0 using an docker-compose.env file, and later there may be a way to specify default-if-not-set values in the Compose file itself (#3108).
Tripped me up since args are allowed overrides. There are a other issues open for variable interpolation so I suppose that may allow a workaround as well.
Activity
dnephin commentedon Mar 22, 2016
This is working as intended. Environment variables with values should not be overridden from the host values.
There is no way to achieve that yet. There will be in 1.7.0 using an
docker-compose.envfile, and later there may be a way to specify default-if-not-set values in the Compose file itself (#3108).aleemb commentedon Mar 22, 2016
Tripped me up since args are allowed overrides. There are a other issues open for variable interpolation so I suppose that may allow a workaround as well.