mirror of https://github.com/docker/docs.git
Add clarification on env_file / environment interaction (#4177)
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
c563733b76
commit
45ac9fe357
|
@ -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 – this holds true even if those values are
|
||||
empty or undefined.
|
||||
|
||||
env_file: .env
|
||||
|
||||
|
|
|
@ -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 – this holds true even if those values are
|
||||
empty or undefined.
|
||||
|
||||
env_file: .env
|
||||
|
||||
|
|
Loading…
Reference in New Issue