Define and run multi-container applications with Docker
Go to file
Anca Iordache 5db8d86f12 "Bump 1.28.6"
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
2021-03-23 14:00:34 +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 "Bump 1.28.6" 2021-03-23 14:00:34 +01:00
contrib Fix fish completion 2021-02-03 00:29:16 +01: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 "Bump 1.28.6" 2021-03-23 14:00:34 +01:00
tests Add `compose.yaml/.yml` to default filenames 2021-03-16 18:04:51 +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 build.linux: Revert to Python 3.7 2021-01-26 20:15:15 +01:00
CHANGELOG.md "Bump 1.28.6" 2021-03-23 14:00:34 +01: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 Bump python to 3.7.10 2021-02-18 20:41:59 +01:00
Jenkinsfile fix config path for authentication 2021-02-18 20:42:47 +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 fix config path for authentication 2021-02-18 20:42:47 +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 deps: Bump Python, Docker, base images 2020-11-26 15:25:09 +01:00
requirements-dev.txt Bump virtualenv from 20.0.30 to 20.2.2 2021-01-26 20:15:14 +01:00
requirements-indirect.txt [Security] Bump cryptography from 3.2.1 to 3.3.2 2021-02-12 10:45:09 +00:00
requirements.txt Use built-in functools.cached_property when possible 2021-03-06 18:45:59 +01:00
setup.cfg enable universal wheels 2017-01-04 18:33:58 +00:00
setup.py Use built-in functools.cached_property when possible 2021-03-06 18:45:59 +01:00
tox.ini Advertise `docker compose` for non linux users 2021-03-02 11:14:07 -03: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.