Compose override file

A second Compose file whose settings are merged on top of the main one, typically for development.

In more detail

docker compose automatically merges compose.override.yaml if it exists, or you name files explicitly with -f. Use it to add bind mounts for hot reloading, a debugger port or verbose logging in development, while the main file stays close to production.

Related terms

Taught in

References