Docker Compose defines and runs multi-container applications described in a Compose file. A single docker compose up command starts the configured services, networks, and volumes together.
Overview
Docker Compose is a CLI tool that reads the Compose file format and orchestrates multiple containers as one application. Teams declare each service, its image or build, dependencies, ports, and storage in YAML, then manage the stack with compose commands instead of starting containers individually.
The workflow is define application images, describe services in compose.yaml, and run docker compose up to create an isolated environment. Compose works across development, testing, staging, production, and CI contexts, with commands to start, stop, rebuild, inspect status, stream logs, and run one-off tasks in a service.
On Windows and macOS the tool ships inside Docker Desktop. On Linux, users install the compose plugin binary into Docker CLI plugin directories. Compose Bridge can translate compose files toward other platforms such as Kubernetes.
The project implements the open Compose specification. Older Docker Swarm relied on a legacy compose format and does not receive all newer syntax features maintained by Docker Inc after Mirantis took over Swarm maintenance.
Key features
- YAML multi-service definitions
- Single-command stack startup
- Service lifecycle management
- Log streaming and status
- One-off service commands
- Compose Bridge export
- Docker Desktop integration
- CI and production workflows
Use cases
- Local microservice stacks
- Dev databases beside apps
- Reproducible integration tests
- Staging environment parity
- Teaching container orchestration basics