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 order to have the best value from the options --env-file & -f to keep the xxx-compose.yml files smaller, it would be needed to see both .env and final yml file through config, current config just gives environment variables meged.. this has two problems
Information is lost as there is no .env file
if doing automation from shell script or batchfile, all the env values are lost..
Do consider to change config to output separate .env and .yml file
config command role is to let you get the actual compose model to be applied on your infrastructure. Values in env file that don't get used here are not "lost", they just aren't used by compose and won't have any impact on your deployment.
Please explain why you would like to see the "merged" env file.
We could introduce a dedicated docker compose config --environment command to dump the project environment, as a merge of all env sources.
Activity
nagkumar commentedon May 31, 2024
More details of the need are at https://forums.docker.com/t/final-environment-variables-applied-file-is-needed/141706/7
ndeloof commentedon Jun 3, 2024
configcommand role is to let you get the actual compose model to be applied on your infrastructure. Values in env file that don't get used here are not "lost", they just aren't used by compose and won't have any impact on your deployment.Please explain why you would like to see the "merged" env file.
We could introduce a dedicated
docker compose config --environmentcommand to dump the project environment, as a merge of all env sources.