What is Docker Compose and when should you use it?
⚡
Quick Answer
Compose defines and runs multi-container apps from a single YAML file — ideal for local dev and simple single-host stacks.
Detailed Answer
docker-compose.yml declares services, networks, and volumes; docker compose up starts them together with a shared network so they resolve each other by service name. It's great for development and CI, but for production orchestration across many hosts you'd use Kubernetes or Swarm.
💡
Interview Tip
Position Compose for dev/single-host, not multi-node prod.
docker-composecontainersdev