Check the WARNING message saying:
WARNING: "env_file: myvars.env" entry in service "db" has been translated to the "environment" section. Note that your environment files will not be copied!.
Note also that the contents of your env file is now merged into the "environment" section of the services. Also, the "env_file" section from the original docker-compose.yml was removed from the migrated file.
'env_file' entries now removed and we warn the user that the its contents are merged into the 'environment' section.
Signed-off-by: Ulysses Souza ulysses.souza@docker.com
- What I did
- How I did it By using
Load
andRender
method from the CLI in theinit
command to resolve the environment section- How to verify it Create
docker-compose.yml
by running:Create
myvars.env
by running:Then init your docker app with:
Check the WARNING message saying:
WARNING: "env_file: myvars.env" entry in service "db" has been translated to the "environment" section. Note that your environment files will not be copied!
.Note also that the contents of your env file is now merged into the "environment" section of the services. Also, the "env_file" section from the original
docker-compose.yml
was removed from the migrated file.Check the resulting file with:
It should look like:
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)