Docker Compose

Open Source

by Docker

Provided by Docker

Not yet rated
Platform
Windows / Linux / macOS
Pricing
Open Source
Account required
No
Ads
None
Last verified
17 hours ago
Developer
Docker
Official URL

Overview

Docker Compose is Docker's tool for defining and running applications made of several containers. Instead of starting a web server, a database and a cache one by one with long commands, you describe the whole stack in one YAML file, including its services, networks and volumes, and bring everything up with a single command.

The same file then drives the day-to-day lifecycle. Compose commands start, stop and rebuild services, show the status of what is running, stream the logs of each service and run one-off commands inside a service. Docker's documentation presents it as useful across development, testing, continuous integration, staging and production, though it is most often used to give every developer on a team the same local environment.

Compose comes bundled with Docker Desktop, which Docker recommends and which is available for Windows, Mac and Linux. On Linux it can also be installed on its own as a plugin for the Docker command line, provided Docker Engine is already present. An older standalone version still exists for backward compatibility but is not recommended. The Compose source code is on GitHub under the Apache 2.0 licence.

Features

  • Defines a multi-container application in one YAML file
  • Describes services, networks and volumes together
  • Starts the whole stack with a single command
  • Commands to start, stop and rebuild services
  • Shows the status of running services
  • Streams log output from services
  • Runs one-off commands inside a service
  • Included with Docker Desktop or installable as a Linux CLI plugin

Privacy

See the official privacy policy. Compose is a command-line tool that runs on your own machine; the documentation website loads an Amplitude analytics script.

Pros & Cons

Pros

  • The whole environment lives in a file that can be version controlled
  • One command replaces many separate container commands
  • Comes with Docker Desktop, so there is usually nothing extra to install
  • Open source under the Apache 2.0 licence

Cons

  • Needs Docker Engine or Docker Desktop installed first
  • The plugin install route is Linux only; Windows and Mac users get it through Docker Desktop
  • The legacy standalone version is no longer recommended
  • You need to understand containers, images and YAML to write the file

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • Containers · Docker

    Builds, ships, and runs applications in containers.

    Not yet rated
    Freemium Windows Linux
  • Containers · Podman

    Builds and runs containers without a daemon.

    Not yet rated
    Open Source Windows Linux
  • LXC
    Containers · LXC

    Runs lightweight Linux system containers.

    Not yet rated
    Open Source Linux