Add clarification on env_file / environment interaction (#4177)

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2017-08-17 14:09:43 -07:00 committed by Misty Stanley-Jones
parent c563733b76
commit 45ac9fe357
2 changed files with 6 additions and 4 deletions

View File

@ -352,8 +352,9 @@ Add environment variables from a file. Can be a single value or a list.
If you have specified a Compose file with `docker-compose -f FILE`, paths in
`env_file` are relative to the directory that file is in.
Environment variables specified in [environment](#environment) _override_
these values.
Environment variables declared in the [environment](#environment) section
_override_ these values &ndash; this holds true even if those values are
empty or undefined.
env_file: .env

View File

@ -873,8 +873,9 @@ Add environment variables from a file. Can be a single value or a list.
If you have specified a Compose file with `docker-compose -f FILE`, paths in
`env_file` are relative to the directory that file is in.
Environment variables specified in [environment](#environment) _override_
these values.
Environment variables declared in the [environment](#environment) section
_override_ these values &ndash; this holds true even if those values are
empty or undefined.
env_file: .env