暂无描述

aevesdocker 0d4edbbd19 Change links and add versioning information 1 年之前
.github db94eb0c26 Add end-of-life message to issue templates 3 年之前
bin e8424d5ae0 Removed Python2 support 5 年之前
compose cd97ac0fc1 Explain `--filter` in `ps` 4 年之前
contrib 84afa518e8 Merge pull request #8061 from albers/completion-profiles 4 年之前
docs 0d4edbbd19 Change links and add versioning information 1 年之前
experimental 07e2426d89 Remove doc on experimental networking support 9 年之前
project 7536c331e0 Document new release process 7 年之前
pyinstaller c217bab7f6 Refactor Dockerfiles for generating musl binaries 6 年之前
script 203576363e Remove section mentioning _config_authoring on docs 4 年之前
tests 1b42ecba14 Update flaky tests on inter-service dependencies 4 年之前
.dockerignore 912d90832c Use a simple script to get docker-ce releases 5 年之前
.gitignore ca8ab06571 Some additional exclusions in .gitignore / .dockerignore 7 年之前
.pre-commit-config.yaml 2011bc3cea exclude .github from pre-commit 4 年之前
CHANGELOG.md 0eaf57466d Update changelog to 1.29.2 4 年之前
CHANGES.md 478054af47 Rename CHANGES.md to CHANGELOG.md 10 年之前
CONTRIBUTING.md 981df93f12 Keep CONTRIBUTING.md information up to date 7 年之前
Dockerfile ccabfde353 Bump python to 3.7.10 4 年之前
INSTALL.md b750e5bb4c Update the installation guide for the python version of Compose 3 年之前
Jenkinsfile 1250bb7481 Update node spec in Jenkinsfile 4 年之前
LICENSE 99064d17dd Docker, Inc. 11 年之前
MAINTAINERS 9ee6b17d9c Add Anca to Maintainers 5 年之前
MANIFEST.in 9f734f7c53 Pin all indirect dependencies 5 年之前
Makefile 8f2dbd9b12 Add devices to config hash to trigger container recreate on change 4 年之前
README.md c9527747eb Change wording about V2 GA being on the way for consistency. 3 年之前
Release.Jenkinsfile c760600a65 fix config path for authentication 4 年之前
SWARM.md 520c695bf4 Update Swarm integration guide and make it an official part of the docs 9 年之前
docker-compose-entrypoint.sh c217bab7f6 Refactor Dockerfiles for generating musl binaries 6 年之前
docker-compose.spec 675c9674e1 Add Makefile including spec download target 5 年之前
docker-compose_darwin.spec 675c9674e1 Add Makefile including spec download target 5 年之前
logo.png 0bdbb33447 include logo in README 10 年之前
logo.svg 2011bc3cea exclude .github from pre-commit 4 年之前
requirements-build.txt a3e6e28eeb deps: Bump Python, Docker, base images 4 年之前
requirements-dev.txt dfe472118d Merge pull request #8318 from docker/dependabot/pip/pytest-6.2.4 4 年之前
requirements-indirect.txt 39ab3aee50 Bump py to 1.10.0 4 年之前
requirements.txt 318181b21e Merge pull request #7718 from docker/dependabot/pip/paramiko-2.7.2 4 年之前
setup.cfg 2648af6807 enable universal wheels 8 年之前
setup.py ddee2958ec Bump docker-py to 5.0.0 and PyYAML to 5.4.1 4 年之前
tox.ini 1da4301650 Advertise `docker compose` for non linux users 4 年之前

README.md

Docker Compose

Build Status

Docker Compose

:warning: Compose V1 is DEPRECATED :warning:

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! :star_struck: **

Check it out here!

Read more on the GA announcement here


V1 vs V2 transition :hourglass_flowing_sand:

"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

:lock_with_ink_pen: 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. We’d 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.