GitHub - Docker/awesome-compose: Awesome Docker Compose Samples

4 min read
24 September 2022


A selection of Docker Compose samples.



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



These samples can be used for local development environments, like projects or to play around with software stacks. These samples must not be used in production environments.



Examples of Docker Compose apps with multiple integrated services. Single service examples. Basic setups for various platforms (not production ready but great for personal use).



Examples of Docker Compose applications that offer multiple integrated services.



ASP.NET MS-SQL and ASP.NET ASP.NET core application that uses MS SQL server database. Elasticsearch and LogstashKibana / Kibana – Sample Elasticsearch, Logstash and Kibana stack. Go / NGINX and MySQL - Sample Go application with an Nginx proxy and a MySQL database. Go / PostgreSQL/NGINX - Sample Go application using an Nginx proxy and a PostgreSQL SQL database. Java Spark / MySQL - Sample Java application and an MySQL database. NGINX / ASP.NET and MySQL - Sample Nginx reverse proxy with an C# backend using ASP.NET NGINX / Flask / MongoDB - Sample Python/Flask program with Nginx proxy and an Mongo database. NGINX / Flaskand MySQL - Sample Python/Flask program with an Nginx proxy and a MySQL table. NGINX/Node.js/Redis A sample Node.js application with Nginx proxy, Redis database, and NGINX/Go. Sample Nginx backend proxy using Go. Fake root NGINX / WSGI and Flask - Sample reverse proxy using Nginx and a Flask backend that uses WSGI. PostgreSQL/pgAdmin - Sample setup for postgreSQL with pgAdmin web interface Python/Flask/Redis - A sample Python/Flask application that includes a MySQL backend. React Express / React MySQL - Sample React application with an Node.js backend and an MySQL database. React Express / MongoDB - Sample React application that uses an Node.js Backend and a Mongo Database. React / Rust/PostgreSQL – Sample React application using the Rust backend that includes a Postgres table. React / Nginx: Sample React application made using Nginx. Spring / PostgreSQL A example Java application that uses the Spring framework and the Postgres data base.



Single service samples



Icon indicates that the sample is compatible with Docker Desktop version 4.10 and later.



Angular Spark VueJS Flask PHP Traefik Django Minecraft server Portainer for Plex Wireguard FastAPI



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



Gitea / PostgreSQLNextcloud / PostgreSQL Nextcloud / Redis / MariaDB Pi-hole/ cloudflared Pi-hole setup sample using the use of DoH cloudflared service Prometheus / Grafana Wordpress / MySQL



These steps will guide you through the steps of bootstrapping for creating and deploying containers using Docker Compose.



Ensure that Docker and Docker Comppose are installed on Windows or macOS. Install Docker Desktop for Linux Install Docker first and then Docker Compose.



A sample run



The root directory of each sample contains compose.yaml which describes the configuration of service components. Each sample can be run locally by entering the root directory for each one and running:



To learn more about the structure and the expected output Please look up the README.md for each sample. To stop the application that is running the sample and to remove all containers, execute:



Contribute



We are looking forward to examples of how Docker Compose can be used for common applications. Read the Contribution Guide for more details.

In case you have found a mistake in the text, please send a message to the author by selecting the mistake and pressing Ctrl-Enter.
Comments (0)

    No comments yet

You must be logged in to comment.

Sign In / Sign Up