Skip to content

Commit 234db8c

Browse files
committed
update environment
1 parent 10f37b9 commit 234db8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/concepts/compose-support.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,14 @@ environment:
126126
DATABASE_USER: someuser
127127
DATABASE_PASSWORD: # leave blank/null to set config
128128
```
129-
The above is called *map notation*. You can also use *list notation* as seen below:
129+
:::tip
130+
Alternatively, you can use *list notation* to write your Compose files:
130131
```yaml
131132
environment:
133+
- DATABASE_USER=someuser
132134
- DATABASE_PASSWORD
133135
```
136+
:::
134137

135138
:::info
136139
After you set sensitive environment variables as blank or `null` values in the `compose.yaml` file, you can securely set their actual value in the Defang CLI. See how Defang handles [Configuration](/docs/concepts/configuration) for more.

0 commit comments

Comments
 (0)