Update environment-variables.md (#15635)

It is not immediately evident or implicitly excluded whether the environment variables declared in the file referenced by *env_file* are not available for use in the Compose file or to configure Compose even if the first line says "You can pass multiple environment variables from an external file through to a service's containers..."
This commit is contained in:
Stefano Coletta 2022-11-28 15:10:01 +01:00 committed by GitHub
parent 3e1e0335a6
commit 823b04fe87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -176,6 +176,10 @@ web:
env_file:
- web-variables.env
```
> **Note**
>
> By using this option, environment variables declared in the file CANNOT be referenced in the Compose file or used to configure Compose.
## Set environment variables with 'docker compose run'