9d547d23fb
* add configuration to use spring-postgres sample with Docker Dev Environments feature Co-authored-by: Milas Bowman <milasb@gmail.com> Signed-off-by: Guillaume Lours <guillaume.lours@docker.com> |
3 years ago | |
---|---|---|
.github | 3 years ago | |
angular | 3 years ago | |
apache-php | 3 years ago | |
aspnet-mssql | 3 years ago | |
django | 3 years ago | |
elasticsearch-logstash-kibana | 3 years ago | |
fastapi | 3 years ago | |
flask | 3 years ago | |
flask-redis | 3 years ago | |
gitea-postgres | 3 years ago | |
minecraft | 3 years ago | |
nextcloud-postgres | 3 years ago | |
nextcloud-redis-mariadb | 3 years ago | |
nginx-aspnet-mysql | 3 years ago | |
nginx-flask-mongo | 3 years ago | |
nginx-flask-mysql | 3 years ago | |
nginx-golang | 3 years ago | |
nginx-golang-mysql | 3 years ago | |
nginx-golang-postgres | 3 years ago | |
nginx-nodejs-redis | 3 years ago | |
nginx-wsgi-flask | 3 years ago | |
pihole-cloudflared-DoH | 3 years ago | |
plex | 3 years ago | |
portainer | 3 years ago | |
postgresql-pgadmin | 3 years ago | |
prometheus-grafana | 3 years ago | |
react-express-mongodb | 3 years ago | |
react-express-mysql | 3 years ago | |
react-java-mysql | 3 years ago | |
react-nginx | 3 years ago | |
react-rust-postgres | 3 years ago | |
sparkjava | 3 years ago | |
sparkjava-mysql | 3 years ago | |
spring-postgres | 3 years ago | |
traefik-golang | 3 years ago | |
vuejs | 3 years ago | |
wireguard | 3 years ago | |
wordpress-mysql | 3 years ago | |
.gitattributes | ||
CONTRIBUTING.md | 4 years ago | |
LICENSE | ||
MAINTAINERS | 5 years ago | |
README.md | 3 years ago | |
awesome-compose.jpg | ||
dev-envs.png | 3 years ago |
README.md
Awesome Compose
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.
- Single service samples.
- Basic setups for different platforms (not production ready - useful for personal use).
Samples of Docker Compose applications with multiple integrated services
ASP.NET / MS-SQL
- Sample ASP.NET core application with MS SQL server database.Elasticsearch / Logstash / Kibana
- Sample Elasticsearch, Logstash, and Kibana stack.Go / NGINX / MySQL
- Sample Go application with an Nginx proxy and a MySQL database.Go / NGINX / PostgreSQL
- Sample Go application with an Nginx proxy and a PostgreSQL database.Java Spark / MySQL
- Sample Java application and a MySQL database.NGINX / ASP.NET / MySQL
- Sample Nginx reverse proxy with an C# backend using ASP.NETNGINX / Flask / MongoDB
- Sample Python/Flask application with Nginx proxy and a Mongo database.NGINX / Flask / MySQL
- Sample Python/Flask application with an Nginx proxy and a MySQL database.NGINX / Node.js / Redis
- Sample Node.js application with Nginx proxy and a Redis databaseNGINX / Go
- Sample Nginx proxy with a Go backend.NGINX / WSGI / Flask
- Sample Nginx reverse proxy with a Flask backend using WSGI.PostgreSQL / pgAdmin
- Sample setup for postgreSQL database with pgAdmin web interfacePython / Flask / Redis
- Sample Python/Flask and a Redis databaseReact / Spring / MySQL
- Sample React application with a Spring backend and a MySQL database.React / Express / MySQL
- Sample React application with a Node.js backend and a MySQL database.React / Express / MongoDB
- Sample React application with a Node.js backend and a Mongo database.React / Rust / PostgreSQL
- Sample React application with a Rust backend and a Postgres database.React / Nginx
- Sample React application with Nginx.Spring / PostgreSQL
- Sample Java application with Spring framework and a Postgres database.
Single service samples
Basic setups for different platforms (not production ready - useful for personal use)
Gitea / PostgreSQL
Nextcloud / PostgreSQL
Nextcloud / Redis / MariaDB
Pi-hole / cloudflared
- Sample Pi-hole setup with use of DoH cloudflared servicePrometheus / Grafana
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
- Linux: Install Docker and then 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:
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
Contribute
We welcome examples that help people understand how to use Docker Compose for common applications. Check the Contribution Guide for more details.