Docker Compose file · Profiles, development and reuse
Override settings for development
compose.override.yaml is merged automatically over compose.yaml.
# compose.override.yaml
services:
web:
ports:
- "8000:8000"
volumes:
- ./src:/app/src
Official Docker Compose file documentation
More profiles, development and reuse commands
- Make services optional
- Sync or rebuild on file changes
- Include another Compose file
- Avoid repetition with anchors
All profiles, development and reuse commands · Docker Compose file cheatsheet