mirror of https://github.com/docker/docs.git
Update project directory precedence
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
41b2904738
commit
13a616b29a
|
@ -5,8 +5,10 @@ title: Declare default environment variables in file
|
|||
---
|
||||
|
||||
Compose supports declaring default environment variables in an environment file
|
||||
named `.env` placed in the folder where the `docker-compose` command is executed
|
||||
*(current working directory)*.
|
||||
named `.env` placed in the project directory. The project directory is specified by order of precedence:
|
||||
- `--project-dir` flag
|
||||
- Folder of the first `--file` flag
|
||||
- Current directory
|
||||
|
||||
## Syntax rules
|
||||
|
||||
|
|
Loading…
Reference in New Issue