Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,16 @@ user: root
# specifying both user and group with ids
user: 0:0
```
### Secrets

```yaml
# in the container, /run/secrets/my_secret is set to the contents of the file ./my_secret.txt
services:
myapp:
image: myapp:latest
secrets:
- my_secret
secrets:
my_secret:
file: ./my_secret.txt
```