Docker Compose ist ein Tool zum Definieren und Ausführen von Multi-Container-Anwendungen mithilfe einer einzelnen YAML-Datei. Anstatt viele docker run-Befehle manuell auszuführen, beschreiben Sie alle Ihre Services (App, Datenbank, Cache) in docker-compose.yml und starten sie zusammen mit einem einzigen Befehl.
Das Problem, das Compose löst
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.
