Skip to content
Define and run multi-container applications with Docker
Python Shell Other
Branch: master
Clone or download

Latest commit

Latest commit f13f26d May 25, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update maintainers and add CODEOWNERS for github Nov 22, 2019
bin Use newer versions of pre-commit hooks Aug 21, 2017
compose Fix flake8 errors May 20, 2020
contrib Add bash completion for `--context` Apr 29, 2020
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 General bumps Apr 27, 2020
tests Fix Typos May 20, 2020
.dockerignore Use a simple script to get docker-ce releases Jan 8, 2020
.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 Update changelog to 1.25.5 Apr 16, 2020
CHANGES.md Rename CHANGES.md to CHANGELOG.md Aug 14, 2015
CONTRIBUTING.md Keep CONTRIBUTING.md information up to date Feb 12, 2018
Dockerfile General bumps Apr 27, 2020
Jenkinsfile General bumps Apr 27, 2020
LICENSE Docker, Inc. Jul 24, 2014
MAINTAINERS Fix Typos May 20, 2020
MANIFEST.in Update setup.py for modern pypi /setuptools Dec 1, 2018
README.md Should fix typo in README.md May 20, 2020
Release.Jenkinsfile General bumps Apr 27, 2020
SWARM.md Update Swarm integration guide and make it an official part of the docs Feb 23, 2016
docker-compose-entrypoint.sh Refactor Dockerfiles for generating musl binaries Apr 17, 2019
docker-compose.spec Fix v3.8 schema support for binaries Mar 5, 2020
docker-compose_darwin.spec Fix v3.8 schema support for binaries Mar 5, 2020
logo.png include logo in README Sep 15, 2015
requirements-build.txt Bump pyinstaller to 3.6 Jan 16, 2020
requirements-dev.txt Merge pull request #7448 from docker/dependabot/pip/pytest-5.4.2 May 25, 2020
requirements.txt Bump urllib3 from 1.25.7 to 1.25.9 May 20, 2020
setup.cfg enable universal wheels Jan 10, 2017
setup.py Bump python-dotenv from 0.11.0 to 0.13.0 Apr 20, 2020
tox.ini Show diff on pre-commit failure May 20, 2020

README.md

Docker Compose

Docker Compose

The docker-compose project announces that as Python 2 has reached its EOL, versions 1.26.x will be the last to support it. For more information, please refer to this issue.

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.