Define and run multi-container applications with Docker
Go to file
Anca Iordache 57f8a0b039
Merge pull request #7953 from docker/dependabot/pip/cryptography-3.2.1
Bump cryptography from 3.2 to 3.2.1
2020-12-02 19:17:57 +01:00
.github Add Anca to Maintainers 2020-08-31 21:40:11 +02:00
bin Removed Python2 support 2020-06-03 17:37:47 +02:00
compose Move device requests to service_dict to avoid adding another field to config hash 2020-12-02 18:12:39 +00:00
contrib Removed Python2 support 2020-08-11 17:45:13 +07:00
docs docs/README.md: update since `vnext-compose` branch is no longer used. 2019-03-06 10:37:32 +00:00
experimental Remove doc on experimental networking support 2016-07-25 13:38:04 +01:00
project Document new release process 2018-04-23 14:52:15 -07:00
pyinstaller Refactor Dockerfiles for generating musl binaries 2019-04-17 16:08:33 +02:00
script deps: Bump Python, Docker, base images 2020-11-26 15:25:09 +01:00
tests Move device requests to service_dict to avoid adding another field to config hash 2020-12-02 18:12:39 +00:00
.dockerignore Use a simple script to get docker-ce releases 2020-01-08 10:15:48 +01:00
.gitignore Some additional exclusions in .gitignore / .dockerignore 2018-10-17 13:39:11 -07:00
.pre-commit-config.yaml deps: Bump Python, Docker, base images 2020-11-26 15:25:09 +01:00
CHANGELOG.md Update changelog for 1.27.4 2020-09-25 09:49:48 +02:00
CHANGES.md Rename CHANGES.md to CHANGELOG.md 2015-08-14 11:27:27 +01:00
CONTRIBUTING.md Keep CONTRIBUTING.md information up to date 2018-02-12 12:06:37 -08:00
Dockerfile centos: Simplify short version variable 2020-12-02 18:17:27 +00:00
Jenkinsfile deps: Bump Python, Docker, base images 2020-11-26 15:25:09 +01:00
LICENSE Docker, Inc. 2014-07-24 10:24:17 -07:00
MAINTAINERS Add Anca to Maintainers 2020-08-31 21:40:11 +02:00
MANIFEST.in Pin all indirect dependencies 2020-06-04 13:43:27 +02:00
Makefile Add devices to config hash to trigger container recreate on change 2020-12-02 18:12:39 +00:00
README.md readme: Simplify and add cloud deployment 2020-11-12 13:15:23 +01:00
Release.Jenkinsfile win: Bump Python version for release 2020-12-02 18:16:32 +00:00
SWARM.md Update Swarm integration guide and make it an official part of the docs 2016-02-19 09:32:43 -08:00
docker-compose-entrypoint.sh Refactor Dockerfiles for generating musl binaries 2019-04-17 16:08:33 +02:00
docker-compose.spec Add Makefile including spec download target 2020-10-27 13:50:17 +01:00
docker-compose_darwin.spec Add Makefile including spec download target 2020-10-27 13:50:17 +01:00
logo.png include logo in README 2015-09-15 09:17:00 +02:00
requirements-build.txt deps: Bump Python, Docker, base images 2020-11-26 15:25:09 +01:00
requirements-dev.txt Add Makefile including spec download target 2020-10-27 13:50:17 +01:00
requirements-indirect.txt Bump cryptography from 3.2 to 3.2.1 2020-11-26 18:48:15 +00:00
requirements.txt Shell out to ssh client for ssh connections 2020-11-23 14:41:34 +01:00
setup.cfg enable universal wheels 2017-01-04 18:33:58 +00:00
setup.py deps: Bump Python, Docker, base images 2020-11-26 15:25:09 +01:00
tox.ini deps: Bump Python, Docker, base images 2020-11-26 15:25:09 +01:00

README.md

Docker Compose

Build Status

Docker Compose

Docker Compose is a tool for running multi-container applications on Docker defined using the Compose file format. A Compose file is used to define how the one or more containers that make up your application are configured. Once you have a Compose file, you can create and start your application with a single command: docker-compose up.

Compose files can be used to deploy applications locally, or to the cloud on Amazon ECS or Microsoft ACI using the Docker CLI. You can read more about how to do this:

Where to get Docker Compose

Windows and macOS

Docker Compose is included in Docker Desktop for Windows and macOS.

Linux

You can download Docker Compose binaries from the release page on this repository.

Using pip

If your platform is not supported, you can download Docker Compose using pip:

pip install docker-compose

Note: Docker Compose requires Python 3.6 or later.

Quick Start

Using Docker 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 Compose file looks like this:

services:
  web:
    build: .
    ports:
      - "5000:5000"
    volumes:
      - .:/code
  redis:
    image: redis

You can find examples of Compose applications in our Awesome Compose repository.

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

Contributing

Want to help develop Docker Compose? Check out our contributing documentation.

If you find an issue, please report it on the issue tracker.

Releasing

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