# Docker Compose

> Define and run multi-container applications with Docker

Source: https://talira.ai/catalog/docker-compose-xmpvhqkn
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [devops / containers / compose](https://talira.ai/categories/devops/containers/compose), [devops / containers](https://talira.ai/categories/devops/containers), [developer tools / environment / containers](https://talira.ai/categories/developer-tools/environment/containers)
- Platforms: linux, macos, windows, cli[^7][^8]
- Licence: Apache-2.0[^5][^6]
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes[^7]
- Backed by: [Docker](https://talira.ai/orgs/docker.md)
- Funding: Series C, 2022[^9]

Docker Compose defines a multi-container application in one YAML file (`compose.yaml`): its services, networks, volumes, secrets and configs, following the open Compose Specification. `docker compose up` then creates and starts everything on a [Docker Engine](https://talira.ai/catalog/docker-engine-9442r3nw.md), and other commands rebuild, watch for file changes, stream logs, run one-off commands and tear the stack down. Today's Compose is a Go plugin for the `docker` CLI (Compose v2, and v5, which adds an official Go SDK); the original Python `docker-compose` (v1) is retired. It comes with [Docker Desktop](https://talira.ai/catalog/docker-desktop-c9vm7nb4.md) and as a Linux package from Docker's repositories, and Compose Bridge turns a Compose file into [Kubernetes](https://talira.ai/catalog/kubernetes-ftsegx3m.md) manifests.

## Links

- Website: https://docs.docker.com/compose/
- GitHub: https://github.com/docker/compose
- Docs: https://docs.docker.com/compose/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/docker-compose>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/docker-compose>[^2]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/docker-compose>[^3]

## Problems it solves

- start my app with its Postgres and Redis on my laptop with one command
- describe every service, network and volume of a multi-container app in one file kept in the repo
- new developers lose a day setting up local dependencies; one file should bring them all up
- spin up an isolated environment for integration tests in CI and destroy it when the tests finish
- rebuild or resync my containers automatically when I save source files during development
- run optional services like an admin UI or a mail catcher only when I ask for them
- override a few settings for production without copying the whole container setup
- make the web container wait until the database passes its health check before starting
- deploy a small multi-container app to a single server without learning Kubernetes
- turn my local multi-container setup into Kubernetes manifests and a Kustomize overlay
- load, validate and start multi-container projects from my own Go program instead of calling the CLI
- give containers secrets as files instead of putting passwords in environment variables
- give a containerized service access to the host's NVIDIA GPU
- run a one-off command such as a database migration inside one service's container
- follow the logs of every container in my stack in one terminal
- publish a stack definition to a container registry so others can run it
- same stack with different ports and settings per environment through variables and .env files

## Features

- compose.yaml following the open Compose Specification
- docker compose commands to start, stop, rebuild, check status, stream logs and run one-off commands
- Compose Watch: sync or rebuild services when files change
- profiles for optional services
- multiple Compose files combined with merge, include and extends
- startup order with depends_on and health checks
- secrets and configs mounted as files
- GPU access for services
- publish a Compose application to an OCI registry
- variables and .env files for per-environment values
- deploy to a remote Docker host with DOCKER_HOST
- Compose Bridge: converts Compose files to Kubernetes manifests and a Kustomize overlay, with custom transformation templates
- Go SDK (Compose v5) for loading, validating and running Compose projects from code
- ships in Docker Desktop, as the docker-compose-plugin Linux package, and as standalone binaries

## Limitations

- Doesn't run Compose file format 1: files without a top-level services key worked only with the old Python Compose v1[^4]

## Capabilities

- Has a command line tool: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.81 out of 1.
Signals: maintenance 1.00, adoption 0.92, momentum 0.73, community 0.99, backing 0.55, extensibility 0.20.

- last commit 5 days ago
- 509 commits in the last 90 days
- latest release v5.8.0 6 days ago
- 39.0k GitHub stars
- 296 contributors
- backed by Docker
- funding: Series C, 2022

## Related

- Works with [Docker Engine](https://talira.ai/catalog/docker-engine-9442r3nw.md)
- Works with [Docker Desktop](https://talira.ai/catalog/docker-desktop-c9vm7nb4.md)

## Alternatives

- [devenv](https://talira.ai/catalog/devenv-zh8v4g3n.md): Declarative, reproducible developer environments using Nix
- [podman-compose](https://talira.ai/catalog/podman-compose-d2s8pt8c.md): A script to run docker-compose.yml using podman
- [Tilt](https://talira.ai/catalog/tilt-yy3vfypj.md): Smart rebuilds and live updates for microservice development on Kubernetes
- [Aspire](https://talira.ai/catalog/aspire-3jwwf2w5.md): Compose distributed apps in code

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^4]: https://docs.docker.com/compose/intro/history/ (checked 19 Nov 2026)
[^5]: https://github.com/docker/compose/blob/main/LICENSE (checked 19 Nov 2026)
[^6]: https://compose-spec.io/ (checked 19 Nov 2026)
[^7]: https://docs.docker.com/compose/install/ (checked 19 Nov 2026)
[^8]: https://github.com/docker/compose (checked 19 Nov 2026)
[^9]: https://www.docker.com/press-release/accelerate-investments-in-developer-productivity-trusted-content-and-ecosystem-partnerships/ (checked 20 Nov 2026)
