mirror of https://github.com/docker/docs.git
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:
parent
3e1e0335a6
commit
823b04fe87
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue