Automation · Container Automation
Docker Compose
Cheat sheet · https://pcornel.dk/topic.php?topic=5784
Answer
Docker Compose defines multi-container applications in compose.yaml — services, networks, volumes, environment — and runs them with docker compose up -d, making the setup reproducible.
Remember
- compose.yaml defines services, networks and volumes.
- docker compose config validates and shows the merged file.
- up -d starts services in the background.
First checks
docker compose config— validated configdocker compose up -d --wait— deploy and wait for healthydocker compose ps— status
Commands
docker compose
Verify in this order
compose.yaml → up → containers
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5784