Docker Compose ni zana ya kufafanua na kuendesha programu za containers nyingi kwa kutumia faili moja ya YAML. Badala ya kuendesha amri nyingi za docker run kwa mkono, unaelezea huduma zako zote (programu, database, cache) katika docker-compose.yml na kuzianzisha pamoja kwa amri moja.
Tatizo Compose inasuluhisha
A real app often has MULTIPLE containers: a web app + a database + a cache + ...
→ manually running each with docker run (ports, networks, volumes, env, dependencies)
is tedious, error-prone, and hard to reproduce/share
→ Compose defines the WHOLE stack in one file → start it all with one command.
