
Problems Docker Compose solves
All 17 problems from Docker Compose's listing.
- start my app with its Postgres and Redis on my laptop with one command
- describe every service, network and volume of a multi-container app in one file kept in the repo
- new developers lose a day setting up local dependencies; one file should bring them all up
- spin up an isolated environment for integration tests in CI and destroy it when the tests finish
- rebuild or resync my containers automatically when I save source files during development
- run optional services like an admin UI or a mail catcher only when I ask for them
- override a few settings for production without copying the whole container setup
- make the web container wait until the database passes its health check before starting
- deploy a small multi-container app to a single server without learning Kubernetes
- turn my local multi-container setup into Kubernetes manifests and a Kustomize overlay
- load, validate and start multi-container projects from my own Go program instead of calling the CLI
- give containers secrets as files instead of putting passwords in environment variables
- give a containerized service access to the host's NVIDIA GPU
- run a one-off command such as a database migration inside one service's container
- follow the logs of every container in my stack in one terminal
- publish a stack definition to a container registry so others can run it
- same stack with different ports and settings per environment through variables and .env files