docker/compose
Fork: 5210 Star: 33883 (更新于 2024-10-26 06:35:43)
license: Apache-2.0
Language: Go .
Define and run multi-container applications with Docker
最后发布版本: v2.29.7 ( 2024-09-20 16:52:10)
Table of Contents
Docker Compose v2
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 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
.
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.
Rename the relevant binary for your OS to docker-compose
and copy it to $HOME/.docker/cli-plugins
Or copy it into one of these folders to install it system-wide:
-
/usr/local/lib/docker/cli-plugins
OR/usr/local/libexec/docker/cli-plugins
-
/usr/lib/docker/cli-plugins
OR/usr/libexec/docker/cli-plugins
(might require making the downloaded file executable with chmod +x
)
Quick Start
Using Docker Compose is a three-step process:
- Define your app's environment with a
Dockerfile
so it can be reproduced anywhere. - Define the services that make up your app in
compose.yaml
so they can be run together in an isolated environment. - 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
Contributing
Want to help develop Docker Compose? Check out our contributing documentation.
If you find an issue, please report it on the issue tracker.
Legacy
The Python version of Compose is available under the v1
branch.
最近版本更新:(数据更新于 2024-10-01 13:02:04)
2024-09-20 16:52:10 v2.29.7
2024-09-19 21:12:12 v2.29.6
2024-09-17 17:20:55 v2.29.5
2024-09-16 17:42:06 v2.29.4
2024-09-12 23:32:14 v2.29.3
2024-08-16 17:47:14 v2.29.2
2024-07-23 22:39:07 v2.29.1
2024-07-17 22:16:51 v2.29.0
2024-06-24 21:19:35 v2.28.1
2024-06-21 20:13:44 v2.28.0
主题(topics):
docker, docker-compose, go, golang, orchestration
docker/compose同语言 Go最近更新仓库
2024-11-05 08:55:31 XTLS/Xray-core
2024-11-05 00:03:47 SagerNet/sing-box
2024-11-04 20:34:19 Permify/permify
2024-11-04 15:07:27 containerd/containerd
2024-11-03 20:10:56 flipped-aurora/gin-vue-admin
2024-11-03 00:46:25 dolthub/dolt