Introduction
Sometimes you want to change or add settings to your Docker setup without changing the original file. Using multiple Compose files lets you keep your base setup and add or override parts easily.
When you want to add extra services only for development without changing production setup
When you need to change environment variables for testing without editing the main file
When you want to increase resource limits temporarily without touching the base config
When you want to add debugging tools to your containers only in certain cases
When you want to keep your main Compose file clean and add optional features separately