DevOps · Flashcard

What is Docker Compose used for?

  • ADefining and running multi-container applications using a single YAML file to configure all services, networks, and volumes
  • BBuilding optimized Docker images by combining multiple Dockerfiles into a single multi-stage build pipeline
  • COrchestrating containers across a cluster of machines with automatic scaling, load balancing, and failover
  • DManaging Docker daemon configuration on multiple hosts by synchronizing registry credentials and settings

Why this is the answer

Compose simplifies orchestrating applications with multiple services (e.g. web + database + cache). One `docker compose up` replaces multiple `docker run` commands with all their flags.

Official docs
Study in Gnoseed →