Define and run multi-container applications with Docker
Go to file
aevesdocker 0d4edbbd19 Change links and add versioning information
Signed-off-by: aevesdocker <allie.sadler@docker.com>
2024-05-01 14:52:41 +02:00
.github Add end-of-life message to issue templates 2022-07-04 17:57:08 +01:00
bin Removed Python2 support 2020-06-03 17:37:47 +02:00
compose Explain `--filter` in `ps` 2021-09-20 21:35:05 +02:00
contrib Merge pull request #8061 from albers/completion-profiles 2021-03-30 09:33:50 +02:00
docs Change links and add versioning information 2024-05-01 14:52:41 +02: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 Remove section mentioning _config_authoring on docs 2021-05-10 17:26:17 -03:00
tests Update flaky tests on inter-service dependencies 2021-04-15 10:44:32 +02: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 exclude .github from pre-commit 2021-09-09 15:43:15 +02:00
CHANGELOG.md Update changelog to 1.29.2 2021-05-10 17:25:50 -03: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 11:04:25 -03:00
INSTALL.md Update the installation guide for the python version of Compose 2022-04-26 17:44:45 +02:00
Jenkinsfile Update node spec in Jenkinsfile 2021-04-13 17:11:29 +02: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 Change wording about V2 GA being on the way for consistency. 2022-07-04 17:43:50 +01:00
Release.Jenkinsfile fix config path for authentication 2021-02-18 19:22:13 +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
logo.svg exclude .github from pre-commit 2021-09-09 15:43:15 +02:00
requirements-build.txt deps: Bump Python, Docker, base images 2020-11-26 15:25:09 +01:00
requirements-dev.txt Merge pull request #8318 from docker/dependabot/pip/pytest-6.2.4 2021-06-15 12:19:31 -03:00
requirements-indirect.txt Bump py to 1.10.0 2021-05-10 06:44:49 -03:00
requirements.txt Merge pull request #7718 from docker/dependabot/pip/paramiko-2.7.2 2021-06-15 18:45:33 -03:00
setup.cfg enable universal wheels 2017-01-04 18:33:58 +00:00
setup.py Bump docker-py to 5.0.0 and PyYAML to 5.4.1 2021-04-06 14:24:48 -03: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

⚠️ Compose V1 is DEPRECATED ⚠️

Since Compose V2 is now GA, Compose V1 is officially End of Life. This means that:

  • Active development and new features will only be added to the V2 codebase
  • Only security-related issues will be considered for V1

Check out the V2 branch here!!


** Compose V2 is Generally Available! 🤩 **

Check it out here!

Read more on the GA announcement here


V1 vs V2 transition

"Generally Available" will mean:

  • New features and bug fixes will only be considered in the V2 codebase
  • Users on Mac/Windows will be defaulted into Docker Compose V2, but can still opt out through the UI and the CLI. This means when running docker-compose you will actually be running docker compose
  • Our current goal is for users on Linux to receive Compose v2 with the latest version of the docker CLI, but is pending some technical discussion. Users will be able to use compose switch to enable redirection of docker-compose to docker compose
  • Docker Compose V1 will continue to be maintained regarding security issues
  • v2 branch will become the default one at that time

🔏 Depending on the feedback we receive from the community of GA and the adoption on Linux, we will come up with a plan to deprecate v1, but as of right now there is no concrete timeline as we want the transition to be as smooth as possible for all users. It is important to note that we have no plans of removing any aliasing of docker-compose to docker compose. We want to make it as easy as possible to switch and not break any ones scripts. We will follow up with a blog post in the next few months with more information of an exact timeline of V1 being marked as deprecated and end of support for security issues. Wed love to hear your feedback! You can provide it here.

About

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

All the instructions to install the Python version of Docker Compose, aka v1, are described in the installation guide.

⚠️ This version is a deprecated version of Compose. We recommend that you use the latest version of Docker Compose.

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.