close
The Wayback Machine - https://web.archive.org/web/20190322172745/https://github.com/docker/compose
Skip to content
Image
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
Define and run multi-container applications with Docker
Branch: master
Clone or download
Latest commit fc757fb Mar 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Image .circleci Bump python version from 3.6.8 to 3.7.2 Feb 21, 2019
Image .github/ISSUE_TEMPLATE Update issue templates Oct 17, 2018
Image bin Use newer versions of pre-commit hooks Aug 21, 2017
Image compose Add test and implementation for secret added after container has been… Mar 8, 2019
Image contrib Add --quiet build flag Mar 2, 2019
Image docs docs/README.md: update since `vnext-compose` branch is no longer used. Mar 6, 2019
Image experimental Remove doc on experimental networking support Jul 25, 2016
Image project Document new release process Apr 27, 2018
Image script Fix bintray docker-compose link Mar 22, 2019
Image tests Remove project.stop() in test Mar 8, 2019
Image .dockerignore Some additional exclusions in .gitignore / .dockerignore Oct 17, 2018
Image .gitignore Some additional exclusions in .gitignore / .dockerignore Oct 17, 2018
Image .pre-commit-config.yaml Update `reorder_python_imports` version to fix Unicode problems Nov 30, 2018
Image CHANGELOG.md "Bump 1.23.2" Nov 28, 2018
Image CHANGES.md Rename CHANGES.md to CHANGELOG.md Aug 14, 2015
Image CONTRIBUTING.md Keep CONTRIBUTING.md information up to date Feb 12, 2018
Image Dockerfile Harmonize tox and virtualenv versions Feb 21, 2019
Image Dockerfile.armhf Bump python version from 3.6.8 to 3.7.2 Feb 21, 2019
Image Dockerfile.run Update versions in Dockerfiles Oct 17, 2018
Image Dockerfile.s390x Use slim alpine instead of bulky debian Oct 18, 2017
Image Jenkinsfile Bump python version from 3.6.8 to 3.7.2 Feb 21, 2019
Image LICENSE Docker, Inc. Jul 24, 2014
Image MAINTAINERS Update maintainers file Jan 14, 2019
Image MANIFEST.in Update setup.py for modern pypi /setuptools Dec 1, 2018
Image README.md README.md: Update bug report link Nov 26, 2018
Image SWARM.md Update Swarm integration guide and make it an official part of the docs Feb 23, 2016
Image appveyor.yml Harmonize tox and virtualenv versions Feb 21, 2019
Image docker-compose.spec Enable bootloader_ignore_signals in pyinstaller Mar 12, 2019
Image logo.png include logo in README Sep 15, 2015
Image requirements-build.txt Bump python version from 3.6.8 to 3.7.2 Feb 21, 2019
Image requirements-dev.txt requirements-dev: Fix version of mock to 2.0.0 Feb 5, 2019
Image requirements.txt Bump docker-py version to 3.7.1 Mar 22, 2019
Image setup.cfg enable universal wheels Jan 10, 2017
Image setup.py Merge pull request #6444 from qboot/master Jan 11, 2019
Image tox.ini Bump python version from 3.6.8 to 3.7.2 Feb 21, 2019

README.md

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'

services:
  web:
    build: .
    ports:
     - "5000:5000"
    volumes:
     - .:/code
  redis:
    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

  • Full documentation is available on Docker's website.
  • Code repository for Compose is on GitHub.
  • If you find any problems please fill out an issue. Thank you!

Contributing

Build Status

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

Releasing

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

You can’t perform that action at this time.