Docker Compose
Compose configs
Provide ordinary configuration files through explicit service grants. Verify local file permissions and platform support; never use config mounts as a secret-management guarantee. Review file permissions and actual mounts without exposing sensitive data.
Formal Syntax & Structure
docker syntaxdocker
configs: { NAME: { file: PATH } }Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| NAME | string | Configuration key |
| PATH | string | Reviewed local file path |
Working Example
Example Snippetdocker
configs: settings: file: ./settings.txt