Provides a structured way to mount a config artifact.
Section: Configs and Secrets Patterns
Mount a config file
yaml
yaml
services:
nginx:
image: nginx:alpine
configs:
- source: nginx_conf
target: /etc/nginx/conf.d/default.conf
configs:
nginx_conf:
file: ./nginx/default.confExplanation
Helpful when treating config as a managed resource.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Configs and Secrets Patterns