Define and run multi-container applications with Docker
Go to file
dependabot-preview[bot] 8785279ffd
Bump virtualenv from 20.0.30 to 20.2.1
Bumps [virtualenv](https://github.com/pypa/virtualenv) from 20.0.30 to 20.2.1.
- [Release notes](https://github.com/pypa/virtualenv/releases)
- [Changelog](https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/virtualenv/compare/20.0.30...20.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-23 22:16:04 +00: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 Implement device requests for GPU support 2020-11-17 13:34:58 +01: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 build: Refactor to use BuildKit 2020-11-09 18:19:02 +01:00
tests Merge pull request #7435 from rohitkg98/7416-add-disable-log-prefix-flag 2020-11-12 09:34:20 +01: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 Removed Python2 support 2020-08-11 17:45:13 +07: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 build: Add build for CentOS 2020-11-09 18:19:02 +01:00
Jenkinsfile build: Refactor to use BuildKit 2020-11-09 18:19:02 +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 Makefile including spec download target 2020-10-27 13:50:17 +01:00
README.md readme: Simplify and add cloud deployment 2020-11-12 13:15:23 +01:00
Release.Jenkinsfile build: Refactor to use BuildKit 2020-11-09 18:19:02 +01: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 Bump pyinstaller to 3.6 2020-01-16 13:46:47 +01:00
requirements-dev.txt Add Makefile including spec download target 2020-10-27 13:50:17 +01:00
requirements-indirect.txt Bump virtualenv from 20.0.30 to 20.2.1 2020-11-23 22:16:04 +00:00
requirements.txt Use docker-py's default api version for engine queries 2020-08-21 13:25:59 +02:00
setup.cfg enable universal wheels 2017-01-04 18:33:58 +00:00
setup.py Fix bump of docker-py on `setup.py` 2020-08-31 21:55:56 +02:00
tox.ini Merge pull request #7031 from venthur/remove_python2 2020-06-10 17:03:19 +02: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.