Docker Compose એક એવું સાધન છે જે એક YAML ફાઈલનો ઉપયોગ કરીને multi-container applications ને વ્યાખ્યાયિત કરવા અને ચલાવવા માટે વપરાય છે. ઘણાં docker run આદેશોને મેન્યુઅલી ચલાવવાની જગ્યાએ, તમે તમામ સેવાઓ (app, database, cache) ને docker-compose.yml માં વર્ણવો અને તેમને એક આદેશ સાથે એક સાથે શરૂ કરો.
Compose જે સમસ્યાનો સમાધાન કરે છે
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.
