awesome-compose README

The project's README from github.com/docker/awesome-compose. As one markdown file: README.md.

Awesome Compose Awesome

logo

A curated list of Docker Compose samples.

These samples provide a starting point for how to integrate different services using a Compose file and to manage their deployment with Docker Compose.

Note The following samples are intended for use in local development environments such as project setups, tinkering with software stacks, etc. These samples must not be deployed in production environments.

Contents

Samples of Docker Compose applications with multiple integrated services

Docker + wasm Icon indicates Sample is compatible with Docker+Wasm.

Single service samples

Basic setups for different platforms (not production ready - useful for personal use)

Getting started

These instructions will get you through the bootstrap phase of creating and deploying samples of containerized applications with Docker Compose.

Prerequisites

Running a sample

The root directory of each sample contains the compose.yaml which describes the configuration of service components. All samples can be run in a local environment by going into the root directory of each one and executing:

docker compose up -d

Check the README.md of each sample to get more details on the structure and what is the expected output. To stop and remove all containers of the sample application run:

docker compose down

Quickstart guides

In addition to all the ready to run Compose samples listed above the folder official-documentation-samples contains quickstart guides. Each of these step by step guides explain which files need to be created to build and run a Docker Compose application.

Contribute

We welcome examples that help people understand how to use Docker Compose for common applications. Check the Contribution Guide for more details.

awesome-compose (docker/awesome-compose)

Searching Database…

这是什么?Awesome Compose 是一份精心整理的 Docker Compose 示例清单:这些现成的项目配置展示了如何通过 Compose 文件集成不同的服务,并用 Docker Compose 管理它们的部署。
所以它是一个清单,不是工具——那每个示例里到底有什么?每个示例都是一个小的项目文件夹,其中的 compose.yaml 描述了各个服务组件。你只需浏览清单,把适合自己技术栈的配置拿过来复用,不需要安装任何东西。
我怎么运行其中一个示例?选一个示例,进入它的根目录,在那里用 Docker Compose 运行即可;示例自带的 README.md 会说明项目结构和预期的输出。
在示例能启动之前,我的电脑上需要装什么?只要有带 Compose 的 Docker 就行:Windows 或 macOS 上用 Docker Desktop,在 Linux 上则需单独安装 Docker 和 Docker Compose。
把这些配置直接用到生产环境安全吗?不安全。README 中说明这些示例只适用于项目搭建、调试折腾之类的本地开发环境,不能部署到生产环境。
这份清单涵盖哪些技术栈?分为三类:多服务应用(React、Spring、Go、Flask、Node.js 或 Rust 后端,搭配数据库和 Nginx 代理)、单服务示例(如 Django、Minecraft 服务器或 Wireguard),以及个人自用配置(如 Nextcloud、Pi-hole、Prometheus/Grafana 和 WordPress)。
有 WebAssembly 的示例吗?有。WasmEdge 示例包括一个带静态 HTML 前端的 Wasm 网页应用,其 Rust 微服务运行在 WasmEdge 运行时上并连接 MySQL,另外还有一个从 Kafka 到 MySQL 的 worker。清单用图标标出了哪些示例兼容 Docker+Wasm。
我对 Compose 本身还不熟——有没有比这些示例更简单的入门材料?有,official-documentation-samples 文件夹里提供了循序渐进的快速入门指南,讲解要创建哪些文件才能构建并运行一个 Docker Compose 应用。
Creator
docker
Size
11.2 MB
Stars
46.5K
Updated
CommitJun 15
Age
6y
Commits · 90 Days