Skip to content
Define and run multi-container applications with Docker
Python Shell Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Bump python version from 3.6.8 to 3.7.2 Feb 21, 2019
.github/ISSUE_TEMPLATE Update issue templates Oct 17, 2018
bin Use newer versions of pre-commit hooks Aug 21, 2017
compose Pass toplevel_environment to run_one_off_container Jul 24, 2019
contrib Add shell completions for --env-file option Jul 24, 2019
docs docs/README.md: update since `vnext-compose` branch is no longer used. Mar 6, 2019
experimental Remove doc on experimental networking support Jul 25, 2016
project Document new release process Apr 27, 2018
pyinstaller Refactor Dockerfiles for generating musl binaries Apr 17, 2019
script Bump macOS build dependency Jul 10, 2019
tests Add integration tests regarding environment Jul 31, 2019
.dockerignore Some additional exclusions in .gitignore / .dockerignore Oct 17, 2018
.fossa.yml Add .fossa.yml file Jun 14, 2019
.gitignore Some additional exclusions in .gitignore / .dockerignore Oct 17, 2018
.pre-commit-config.yaml Update `reorder_python_imports` version to fix Unicode problems Nov 30, 2018
CHANGELOG.md "Bump 1.24.0" Mar 28, 2019
CHANGES.md Rename CHANGES.md to CHANGELOG.md Aug 14, 2015
CONTRIBUTING.md Keep CONTRIBUTING.md information up to date Feb 12, 2018
Dockerfile Bump Linux build dependencies Jul 10, 2019
Dockerfile.s390x Use slim alpine instead of bulky debian Oct 18, 2017
Jenkinsfile Refactor release and build scripts Apr 17, 2019
LICENSE Docker, Inc. Jul 24, 2014
MAINTAINERS Update maintainers file Jan 14, 2019
MANIFEST.in Update setup.py for modern pypi /setuptools Dec 1, 2018
README.md README.md: Update bug report link Nov 26, 2018
SWARM.md Update Swarm integration guide and make it an official part of the docs Feb 23, 2016
appveyor.yml Harmonize tox and virtualenv versions Feb 21, 2019
docker-compose-entrypoint.sh Refactor Dockerfiles for generating musl binaries Apr 17, 2019
docker-compose.spec Enable bootloader_ignore_signals in pyinstaller Mar 12, 2019
logo.png include logo in README Sep 15, 2015
requirements-build.txt Bump python version from 3.6.8 to 3.7.2 Feb 21, 2019
requirements-dev.txt Bump mock from 2.0.0 to 3.0.5 Jul 8, 2019
requirements.txt Bump texttable from 0.9.1 to 1.6.2 Jul 8, 2019
setup.cfg enable universal wheels Jan 10, 2017
setup.py Merge pull request #6792 from ulyssessouza/bump-texttable Jul 8, 2019
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.