Define and run multi-container applications with Docker
Python Shell PowerShell
Latest commit 9355d35 Dec 12, 2017 @shin- shin- Merge pull request #5476 from docker/5414-tagless-images
Avoid CLI crash if image has no tags
Failed to load latest commit information.
bin Use newer versions of pre-commit hooks Aug 3, 2017
compose Avoid CLI crash if image has no tags Dec 12, 2017
contrib Add bash completion for `down --timeout` Dec 7, 2017
docs updated README per vnext branch plan Oct 5, 2016
experimental Remove doc on experimental networking support Jul 25, 2016
project Better installation instruction in release notes Oct 23, 2017
script Update script to generate sha256 files Dec 7, 2017
tests Avoid CLI crash if image has no tags Dec 12, 2017
.dockerignore Some more test adjustments for Swarm support Jul 20, 2017
.gitignore Handle giving help a nonexistent command Dec 3, 2016
.pre-commit-config.yaml Use newer versions of pre-commit hooks Aug 3, 2017
.travis.yml Specify osx_image to fix CI Dec 2, 2017 Bump 1.17.0 Nov 3, 2017 Rename to Aug 14, 2015 Fixed example in instructions for running tests. Nov 22, 2017
Dockerfile check hash sums of downloaded files Jun 9, 2017
Dockerfile.armhf Add support to build docker-compose on ARM 32bit Feb 8, 2017 Improve Mar 3, 2017
Dockerfile.s390x Use slim alpine instead of bulky debian Sep 27, 2017
Jenkinsfile Limit testing pool to Ubuntu hosts to avoid errors with dind not Nov 15, 2016
LICENSE Docker, Inc. Jul 24, 2014
MAINTAINERS Add Joffrey to maintainers May 30, 2017 Add the git sha to version output Dec 3, 2015 Not colon but a dot. Apr 28, 2017 Add issue link for zero-downtime deploys May 30, 2016 Update Swarm integration guide and make it an official part of the docs Feb 23, 2016
appveyor.yml Move all build scripts to script/build Feb 25, 2016
docker-compose.spec Add support for custom names for networks, secrets, configs Dec 7, 2017
logo.png include logo in README Sep 15, 2015
requirements-build.txt Use newer version of PyInstaller to fix prelinking issues Feb 3, 2017
requirements-dev.txt Add flake8 to dev requirements Oct 23, 2017
requirements.txt Bump colorama (use unreleased fix) Nov 9, 2017
setup.cfg enable universal wheels Jan 10, 2017 Bump colorama (use unreleased fix) Nov 9, 2017
tox.ini Add support for extra_hosts in build config Nov 9, 2017

Docker Compose

Docker Compose

Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a Compose file to configure your application's services. Then, using a single command, you create and start all the services from your configuration. To learn more about all the features of Compose see the list of features.

Compose is great for development, testing, and staging environments, as well as CI workflows. You can learn more about each case in Common Use Cases.

Using Compose is basically a three-step process.

  1. Define your app's environment with a Dockerfile so it can be reproduced anywhere.
  2. Define the services that make up your app in docker-compose.yml so they can be run together in an isolated environment.
  3. Lastly, run docker-compose up and Compose will start and run your entire app.

A docker-compose.yml looks like this:

version: '2'

    build: .
     - "5000:5000"
     - .:/code
    image: redis

For more information about the Compose file, see the Compose file reference

Compose has commands for managing the whole lifecycle of your application:

  • Start, stop and rebuild services
  • View the status of running services
  • Stream the log output of running services
  • Run a one-off command on a service

Installation and documentation


Build Status

Want to help build Compose? Check out our contributing documentation.


Releases are built by maintainers, following an outline of the release process.