Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/docker/awesome-compose
Awesome Docker Compose samples
https://github.com/docker/awesome-compose
List: awesome-compose
awesome awesome-list docker-compose
Last synced: about 1 month ago
JSON representation
Awesome Docker Compose samples
- Host: GitHub
- URL: https://github.com/docker/awesome-compose
- Owner: docker
- License: cc0-1.0
- Created: 2020-02-13T08:51:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-18T09:08:07.000Z (6 months ago)
- Last Synced: 2024-05-19T10:23:36.352Z (6 months ago)
- Topics: awesome, awesome-list, docker-compose
- Language: HTML
- Homepage: https://docs.docker.com/compose/
- Size: 6.97 MB
- Stars: 30,819
- Watchers: 419
- Forks: 5,929
- Open Issues: 208
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesomeLibrary - awesome-compose - Awesome Docker Compose samples (语言资源库 / awesome-library)
- awesome-projects - awesome-compose - compose samples (cli)
- awesome - docker/awesome-compose - Awesome Docker Compose samples (awesome-list)
- awesome-ccamel - docker/awesome-compose - Awesome Docker Compose samples (HTML)
- awesome - docker/awesome-compose - Awesome Docker Compose samples (HTML)
- more-awesome - Docker Compose - Docker Compose-based setups ready to use. (Back-End Development)
- awesome-starred - docker/awesome-compose - Awesome Docker Compose samples (awesome-list)
- awesome-starts - docker/awesome-compose - Awesome Docker Compose samples (HTML)
- awesome-swarm - awesome-compose - A list of awesome Docker Compose samples. (Related Awesome Lists / Articles and Sample Code)
- jimsghstars - docker/awesome-compose - Awesome Docker Compose samples (HTML)
- awesome-tools - awesome-compose - Awesome Docker Compose samples (Uncategorized / Uncategorized)
- awesome-docker - Awesome Compose - Docker Compose samples (Awesome Lists / Monitoring Services)
- my-awesome - docker/awesome-compose - list,docker-compose pushed_at:2024-10 star:34.8k fork:6.7k Awesome Docker Compose samples (HTML)
- StarryDivineSky - docker/awesome-compose
README
# Awesome Compose [![Awesome](https://awesome.re/badge.svg)](https://awesome.re)
![logo](awesome-compose.jpg)
> 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](#samples-of-docker-compose-applications-with-multiple-integrated-services).
- [Single service samples](#single-service-samples).
- [Basic setups for different platforms (not production ready - useful for personal use)](#basic-setups-for-different-platforms-not-production-ready---useful-for-personal-use).## Samples of Docker Compose applications with multiple integrated services
Icon indicates Sample is compatible with [Docker+Wasm](https://docs.docker.com/desktop/wasm/).
- [`ASP.NET / MS-SQL`](aspnet-mssql) - Sample ASP.NET core application
with MS SQL server database.
- [`Elasticsearch / Logstash / Kibana`](elasticsearch-logstash-kibana) - Sample Elasticsearch, Logstash, and Kibana stack.
- [`Go / NGINX / MySQL`](nginx-golang-mysql) - Sample Go application
with an Nginx proxy and a MySQL database.
- [`Go / NGINX / PostgreSQL`](nginx-golang-postgres) - Sample Go
application with an Nginx proxy and a PostgreSQL database.
- [`Java Spark / MySQL`](sparkjava-mysql) - Sample Java application and
a MySQL database.
- [`NGINX / ASP.NET / MySQL`](nginx-aspnet-mysql) - Sample Nginx reverse proxy with an C# backend using ASP.NET.
- [`NGINX / Flask / MongoDB`](nginx-flask-mongo) - Sample Python/Flask
application with Nginx proxy and a Mongo database.
- [`NGINX / Flask / MySQL`](nginx-flask-mysql) - Sample Python/Flask application with an Nginx proxy and a MySQL database.
- [`NGINX / Node.js / Redis`](nginx-nodejs-redis) - Sample Node.js application with Nginx proxy and a Redis database.
- [`NGINX / Go`](nginx-golang) - Sample Nginx proxy with a Go backend.
- [`NGINX / WSGI / Flask`](nginx-wsgi-flask) - Sample Nginx reverse proxy with a Flask backend using WSGI.
- [`PostgreSQL / pgAdmin`](postgresql-pgadmin) - Sample setup for postgreSQL database with pgAdmin web interface.
- [`Python / Flask / Redis`](flask-redis) - Sample Python/Flask and a Redis database.
- [`React / Spring / MySQL`](react-java-mysql) - Sample React
application with a Spring backend and a MySQL database.
- [`React / Express / MySQL`](react-express-mysql) - Sample React
application with a Node.js backend and a MySQL database.
- [`React / Express / MongoDB`](react-express-mongodb) - Sample React
application with a Node.js backend and a Mongo database.
- [`React / Rust / PostgreSQL`](react-rust-postgres) - Sample React
application with a Rust backend and a Postgres database.
- [`React / Nginx`](react-nginx) - Sample React application with Nginx.
- [`Spring / PostgreSQL`](spring-postgres) - Sample Java application
with Spring framework and a Postgres database.
- [`WasmEdge / MySQL / Nginx`](wasmedge-mysql-nginx) - Sample Wasm-based web application with a static HTML frontend, using a MySQL (MariaDB) database. The frontend connects to a Wasm microservice written in Rust, that runs using the WasmEdge runtime.
- [`WasmEdge / Kafka / MySQL`](wasmedge-kafka-mysql) - Sample Wasm-based microservice that subscribes to a Kafka (Redpanda) queue topic, and transforms and saves any incoming message into a MySQL (MariaDB) database.## Single service samples
- [`Angular`](angular)
- [`Spark`](sparkjava)
- [`VueJS`](vuejs)
- [`Flask`](flask)
- [`PHP`](apache-php)
- [`Traefik`](traefik-golang)
- [`Django`](django)
- [`Minecraft server`](https://github.com/docker/awesome-compose/tree/master/minecraft)
- [`Plex`](https://github.com/docker/awesome-compose/tree/master/plex)
- [`Portainer`](https://github.com/docker/awesome-compose/tree/master/portainer)
- [`Wireguard`](https://github.com/docker/awesome-compose/tree/master/wireguard)
- [`FastAPI`](fastapi)## Basic setups for different platforms (not production ready - useful for personal use)
- [`Gitea / PostgreSQL`](gitea-postgres)
- [`Nextcloud / PostgreSQL`](nextcloud-postgres)
- [`Nextcloud / Redis / MariaDB`](nextcloud-redis-mariadb)
- [`Pi-hole / cloudflared`](pihole-cloudflared-DoH) - Sample Pi-hole setup with use of DoH cloudflared service
- [`Prometheus / Grafana`](prometheus-grafana)
- [`Wordpress / MySQL`](wordpress-mysql)## Getting started
These instructions will get you through the bootstrap phase of creating and
deploying samples of containerized applications with Docker Compose.### Prerequisites
- Make sure that you have Docker and Docker Compose installed
- Windows or macOS:
[Install Docker Desktop](https://www.docker.com/get-started)
- Linux: [Install Docker](https://www.docker.com/get-started) and then
[Docker Compose](https://github.com/docker/compose)
- Download some or all of the samples from this repository.### 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:```console
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:```console
docker compose down
```### Quickstart guides
In addition to all the ready to run Compose samples listed above the folder [official-documentation-samples](official-documentation-samples/README.md) 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](CONTRIBUTING.md) for more details.