The Wayback Machine - https://web.archive.org/web/20200329224137/https://github.com/docker/compose
Skip to content
Define and run multi-container applications with Docker
Python Shell Other
Branch: master
Clone or download

Latest commit

ulyssessouza Merge pull request #7287 from ulyssessouza/add-python-dotenv-setup
Fix pip install by adding python-dotenv to setup.py
Latest commit aaef2d5 Mar 13, 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 Merge pull request #6937 from apollo13/issue6871 Feb 24, 2020
contrib Support attaching to dependencies on up Jan 16, 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 Add conformity tests hack Mar 10, 2020
tests Add conformity tests hack Mar 10, 2020
.dockerignore Use a simple script to get docker-ce releases Jan 8, 2020
.fossa.yml Add .fossa.yml file Jun 24, 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.25.1" Jan 6, 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 Bump Linux and Python Jan 23, 2020
Dockerfile.s390x update alpine version to 3.10.1 Aug 20, 2019
Jenkinsfile update public CI so we run tests on same combinations of python+docker Jan 9, 2020
LICENSE Docker, Inc. Jul 24, 2014
MAINTAINERS Update maintainers and add CODEOWNERS for github Nov 22, 2019
MANIFEST.in Update setup.py for modern pypi /setuptools Dec 1, 2018
README.md Update Jenkins build status badge Feb 27, 2020
Release.Jenkinsfile Force MacOS SDK version to "10.11" Jan 29, 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 Resolve a compatibility issue Feb 27, 2020
requirements.txt Resolve a compatibility issue Feb 27, 2020
setup.cfg enable universal wheels Jan 10, 2017
setup.py Fix pip install by adding python-dotenv to setup.py Mar 13, 2020
tox.ini Bump python version from 3.6.8 to 3.7.2 Feb 21, 2019

README.md

Docker Compose

Docker Compose

❗️ The docker-compose project announces that as Python 2 reaches it's EOL, versions 1.25.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.