Docker Compose: defining and running multi-container applications
Docker Compose is a tool for running applications made of several containers on Docker. The application is described in a Compose file, which sets how each container is configured. Once the file exists, the whole application starts with one command: `docker compose up`.
Compose is included in Docker Desktop for Windows and macOS. On Linux, users download a binary from the release page, rename it to `docker-compose`, and copy it to a plugin folder such as `$HOME/.docker/cli-plugins`, possibly making it executable with `chmod +x`. The quick start has three steps: describe the environment in a Dockerfile[1], list the services in `compose.yaml`, and run `docker compose up`.
The README says that Docker Swarm[2] did not adopt the newer compose specification, so it lacks some recent Compose features. After Mirantis acquired Swarm, Docker Inc stopped maintaining it, so some Compose features are not available to Swarm users. The Python version of Compose remains available under the `v1` branch.
Links from the post and discussion
- Compose file format specification compose-spec.io
- Release page with Compose binaries for Linux github.com
- Docker Desktop, which includes Compose on Windows and macOS docker.com
Sources
-
GitHub Trending
docker/compose


