mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
4.8 KiB
4.8 KiB
description, keywords, title, redirect_from
| description | keywords | title | redirect_from | |||||
|---|---|---|---|---|---|---|---|---|
| Learn how to use Docker Compose to define and run multi-container applications with this detailed introduction to the tool. | docker compose, docker-compose, docker compose command, docker compose files, docker compose documentation, using docker compose, compose container, docker compose service | Overview of Docker Compose |
|
{% include compose-eol.md %}
Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application's services. Then, with a single command, you create and start all the services from your configuration.
Compose works in all environments; production, staging, development, testing, as well as CI workflows. It also has commands for managing the whole lifecycle of your application:
- Start, stop, and rebuild services
- View the status of running services
- Stream the log output of running services
- Run a one-off command on a service
The key features of Compose that make it effective are:
- Have multiple isolated environments on a single host
- Preserve volume data when containers are created
- Only recreate containers that have changed
- Support variables and moving a composition between environments
Try Compose
Learn the key concepts of Docker Compose whilst building a simple Python web application.
Explore the Compose file reference
Find information on defining services, networks, and volumes for a Docker application.