Update project directory precedence

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
Ulysses Souza 2021-03-10 11:15:40 -03:00
parent 41b2904738
commit 13a616b29a
1 changed files with 4 additions and 2 deletions

View File

@ -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