Define and run multi-container applications with Docker https://docs.docker.com/compose/
Find a file
Sebastiaan van Stijn 28f8b8549d
Remove local check for log-driver read support
Starting with Docker 20.10, the docker daemon has support for
"dual logging", which allows reading back logs, irregardless of
the logging-driver that is configured (except for "none" as logging
driver).

This patch removes the local check, which used a hard-coded list of
logging drivers that are expected to support reading logs.

When using an older version of Docker, the API should return an
error that reading logs is not supported, so no local check should
be needed.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-01-28 16:55:36 +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 Remove local check for log-driver read support 2021-01-28 16:55:36 +01:00
contrib Add bash completion for logs|up --no-log-prefix 2021-01-24 22:18:36 +00: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.linux: Revert to Python 3.7 2021-01-22 11:35:37 +01:00
tests Remove local check for log-driver read support 2021-01-28 16:55:36 +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-22 11:35:37 +01:00
CHANGELOG.md Post-release 1.28.0: update changelog and version 2021-01-20 11:30:25 +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
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
Dockerfile build.linux: Revert to Python 3.7 2021-01-22 11:35:37 +01:00
Jenkinsfile build.linux: Revert to Python 3.7 2021-01-22 11:35:37 +01:00
LICENSE Docker, Inc. 2014-07-24 10:24:17 -07:00
logo.png include logo in README 2015-09-15 09:17:00 +02:00
MAINTAINERS Add Anca to Maintainers 2020-08-31 21:40:11 +02:00
Makefile Add devices to config hash to trigger container recreate on change 2020-12-02 18:12:39 +00:00
MANIFEST.in Pin all indirect dependencies 2020-06-04 13:43:27 +02:00
README.md readme: Simplify and add cloud deployment 2020-11-12 13:15:23 +01:00
Release.Jenkinsfile Add cgroup1 label to Release.Jenkinsfile 2021-01-25 19:00:39 +01: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 2020-12-07 15:57:24 -03:00
requirements-indirect.txt build.linux: Revert to Python 3.7 2021-01-22 11:35:37 +01:00
requirements.txt Avoid setting unsuported parameter for subprocess.Popen on Windows 2020-12-22 17:52:24 -03:00
setup.cfg enable universal wheels 2017-01-04 18:33:58 +00:00
setup.py Bump docker-py in setup.py 2020-12-03 19:00:39 +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
tox.ini build.linux: Revert to Python 3.7 2021-01-22 11:35:37 +01:00

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.