Skip to content

Commit e613939

Browse files
authored
ENGDOCS-2365 (#21728)
<!--Delete sections as needed --> ## Description Small clarity addition. Addresses #21151 ## Related issues or tickets <!-- Related issues, pull requests, or Jira tickets --> ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review
1 parent bfd46ac commit e613939

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

content/manuals/compose/how-tos/use-secrets.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Environment variables are often available to all processes, and it can be diffic
1717

1818
## Use secrets
1919

20+
Secrets are mounted as a file in `/run/secrets/<secret_name>` inside the container.
21+
2022
Getting a secret into a container is a two-step process. First, define the secret using the [top-level secrets element in your Compose file](/reference/compose-file/secrets.md). Next, update your service definitions to reference the secrets they require with the [secrets attribute](/reference/compose-file/services.md#secrets). Compose grants access to secrets on a per-service basis.
2123

2224
Unlike the other methods, this permits granular access control within a service container via standard filesystem permissions.

content/reference/compose-file/secrets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The top-level `secrets` declaration defines or references sensitive data that is
1515
application. The source of the secret is either `file` or `environment`.
1616

1717
- `file`: The secret is created with the contents of the file at the specified path.
18-
- `environment`: The secret is created with the value of an environment variable.
18+
- `environment`: The secret is created with the value of an environment variable on the host.
1919

2020
## Example 1
2121

0 commit comments

Comments
 (0)