You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/compose/environment-variables/set-environment-variables.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,13 +103,13 @@ $ docker compose run -e DEBUG=1 web python console.py
103
103
104
104
### Additional information
105
105
106
-
- You can also pass a variable from the shell by not giving it a value:
106
+
- You can also pass a variable from the shell or your environment files by not giving it a value:
107
107
108
108
```console
109
109
$ docker compose run -e DEBUG web python console.py
110
110
```
111
111
112
-
The value of the `DEBUG` variable in the container is taken from the value for the same variable in the shell in which Compose is run.
112
+
The value of the `DEBUG` variable in the container is taken from the value for the same variable in the shell in which Compose is run or from the environment files.
0 commit comments