Docker Compose file · Profiles, development and reuse
Include another Compose file
Reuse a service definition kept in a separate file.
include:
- path: ./infra/database.yaml
Official Docker Compose file documentation
More profiles, development and reuse commands
- Make services optional
- Sync or rebuild on file changes
- Override settings for development
- Avoid repetition with anchors
All profiles, development and reuse commands · Docker Compose file cheatsheet