You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+50-46Lines changed: 50 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
These samples provide a starting point for how to integrate different services using a Compose file and to manage their deployment with Docker Compose.
8
8
9
-
> **Note**
9
+
> **Note**
10
10
> 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.
11
11
12
12
<!--lint disable awesome-toc-->
@@ -18,62 +18,66 @@ These samples provide a starting point for how to integrate different services u
18
18
19
19
## Samples of Docker Compose applications with multiple integrated services
20
20
21
-
<imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/> Icon indicates Sample is compatible with [Docker Dev Environments](https://docs.docker.com/desktop/dev-environments/)
21
+
<ahref="https://docs.docker.com/desktop/dev-environments/"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a> Icon indicates Sample is compatible with [Docker Dev Environments](https://docs.docker.com/desktop/dev-environments/) in Docker Desktop version 4.10 or later.
22
22
23
-
-[`ASP.NET / MS-SQL`](https://github.com/docker/awesome-compose/tree/master/aspnet-mssql) - Sample ASP.NET core application
23
+
-[`ASP.NET / MS-SQL`](aspnet-mssql) - Sample ASP.NET core application
-[`Go / NGINX / MySQL`](https://github.com/docker/awesome-compose/tree/master/nginx-golang-mysql) - Sample Go application
27
-
with an Nginx proxy and a MySQL database. <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
28
-
-[`Go / NGINX / PostgreSQL`](https://github.com/docker/awesome-compose/tree/master/nginx-golang-postgres) - Sample Go
29
-
application with an Nginx proxy and a PostgreSQL database. <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
30
-
-[`Java Spark / MySQL`](https://github.com/docker/awesome-compose/tree/master/sparkjava-mysql) - Sample Java application and
31
-
a MySQL database. <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
32
-
-[`NGINX / ASP.NET / MySQL`](https://github.com/docker/awesome-compose/tree/master/nginx-aspnet-mysql) - Sample Nginx reverse proxy with an C# backend using ASP.NET <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
application with Nginx proxy and a Mongo database. <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
35
-
-[`NGINX / Flask / MySQL`](https://github.com/docker/awesome-compose/tree/master/nginx-flask-mysql) - Sample Python/Flask application with an Nginx proxy and a MySQL database.
36
-
-[`NGINX / Node.js / Redis`](https://github.com/docker/awesome-compose/tree/master/nginx-nodejs-redis) - Sample Node.js application with Nginx proxy and a Redis database
37
-
-[`NGINX / Go`](https://github.com/docker/awesome-compose/tree/master/nginx-golang) - Sample Nginx proxy with a Go backend. <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
38
-
-[`NGINX / WSGI / Flask`](https://github.com/docker/awesome-compose/tree/master/nginx-wsgi-flask) - Sample Nginx reverse proxy with a Flask backend using WSGI.
39
-
-[`PostgreSQL / pgAdmin`](https://github.com/docker/awesome-compose/tree/master/postgresql-pgadmin) - Sample setup for postgreSQL database with pgAdmin web interface
40
-
-[`Python / Flask / Redis`](https://github.com/docker/awesome-compose/tree/master/flask-redis) - Sample Python/Flask and a Redis database <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
41
-
-[`React / Spring / MySQL`](https://github.com/docker/awesome-compose/tree/master/react-java-mysql) - Sample React
42
-
application with a Spring backend and a MySQL database. <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
application with a Rust backend and a Postgres database. <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
49
-
-[`React / Nginx`](https://github.com/docker/awesome-compose/tree/master/react-nginx) - Sample React application with Nginx. <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
-[`Go / NGINX / MySQL`](nginx-golang-mysql) - Sample Go application
27
+
with an Nginx proxy and a MySQL database. <ahref="nginx-golang-mysql"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
28
+
-[`Go / NGINX / PostgreSQL`](nginx-golang-postgres) - Sample Go
29
+
application with an Nginx proxy and a PostgreSQL database. <ahref="nginx-golang-postgres"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
30
+
-[`Java Spark / MySQL`](sparkjava-mysql) - Sample Java application and
31
+
a MySQL database. <ahref="sparkjava-mysql"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
32
+
-[`NGINX / ASP.NET / MySQL`](nginx-aspnet-mysql) - Sample Nginx reverse proxy with an C# backend using ASP.NET <ahref="nginx-aspnet-mysql"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
application with Nginx proxy and a Mongo database. <ahref="nginx-flask-mongo"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
35
+
-[`NGINX / Flask / MySQL`](nginx-flask-mysql) - Sample Python/Flask application with an Nginx proxy and a MySQL database.
36
+
-[`NGINX / Node.js / Redis`](nginx-nodejs-redis) - Sample Node.js application with Nginx proxy and a Redis database
37
+
-[`NGINX / Go`](nginx-golang) - Sample Nginx proxy with a Go backend. <ahref="nginx-golang"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
38
+
-[`NGINX / WSGI / Flask`](nginx-wsgi-flask) - Sample Nginx reverse proxy with a Flask backend using WSGI.
39
+
-[`PostgreSQL / pgAdmin`](postgresql-pgadmin) - Sample setup for postgreSQL database with pgAdmin web interface
40
+
-[`Python / Flask / Redis`](flask-redis) - Sample Python/Flask and a Redis database <ahref="flask-redis"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
41
+
-[`React / Spring / MySQL`](react-java-mysql) - Sample React
42
+
application with a Spring backend and a MySQL database. <ahref="react-java-mysql"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
application with a Node.js backend and a MySQL database. <ahref="react-express-mysql"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
application with a Node.js backend and a Mongo database. <ahref="react-express-mongodb"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
application with a Rust backend and a Postgres database. <ahref="react-rust-postgres"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
49
+
-[`React / Nginx`](react-nginx) - Sample React application with Nginx. <ahref="react-nginx"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
with Spring framework and a Postgres database. <ahref="spring-postgres"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
52
+
52
53
## Single service samples
53
54
54
-
<imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/> Icon indicates Sample is compatible with [Docker Dev Environments](https://docs.docker.com/desktop/dev-environments/)
55
+
<ahref="https://docs.docker.com/desktop/dev-environments/"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a> Icon indicates Sample is compatible with [Docker Dev Environments](https://docs.docker.com/desktop/dev-environments/) in Docker Desktop version 4.10 or later.
55
56
56
-
-[`Angular`](https://github.com/docker/awesome-compose/tree/master/angular) <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
57
-
-[`Spark`](https://github.com/docker/awesome-compose/tree/master/sparkjava) <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
58
-
-[`VueJS`](https://github.com/docker/awesome-compose/tree/master/vuejs) <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
59
-
-[`Flask`](https://github.com/docker/awesome-compose/tree/master/flask) <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
60
-
-[`PHP`](https://github.com/docker/awesome-compose/tree/master/apache-php) <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
61
-
-[`Traefik`](https://github.com/docker/awesome-compose/tree/master/traefik-golang) <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
62
-
-[`Django`](https://github.com/docker/awesome-compose/tree/master/django) <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
57
+
-[`Angular`](angular) <ahref="angular"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
58
+
-[`Spark`](sparkjava) <ahref="sparkjava"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
59
+
-[`VueJS`](vuejs) <ahref="vuejs"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
60
+
-[`Flask`](flask) <ahref="flask"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
61
+
-[`PHP`](apache-php) <ahref="apache-php"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
62
+
-[`Traefik`](traefik-golang) <ahref="traefik-golang"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
63
+
-[`Django`](django) <ahref="django"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
-[`FastAPI`](https://github.com/docker/awesome-compose/tree/master/fastapi) <imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/>
68
-
## Basic setups for different platforms (not production ready - useful for personal use)
-[`Pi-hole / cloudflared`](https://github.com/docker/awesome-compose/tree/master/pihole-cloudflared-DoH) - Sample Pi-hole setup with use of DoH cloudflared service
-[`FastAPI`](fastapi) <ahref="fastapi#use-with-docker-development-environments"><imgsrc="icon_devenvs.svg"alt="Use with Docker Dev Environments"height="30"align="top"/></a>
69
+
70
+
## Basic setups for different platforms (not production ready - useful for personal use)
Copy file name to clipboardExpand all lines: angular/README.md
+7-11Lines changed: 7 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,11 @@
1
1
## Compose sample
2
+
3
+
### Use with Docker Development Environments
4
+
5
+
You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later.
6
+
7
+
[Open in Docker Dev Environments <imgsrc="../open_in_new.svg"alt="Open in Docker Dev Environments"align="top"/>](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/angular)
8
+
2
9
### Angular service
3
10
4
11
Project structure:
@@ -65,14 +72,3 @@ Stop and remove the container
65
72
```
66
73
$ docker compose down
67
74
```
68
-
69
-
## Use with Docker Development Environments
70
-
71
-
You can use this sample with the Dev Environments feature of Docker Desktop.
72
-
73
-

74
-
75
-
To develop directly on the services inside containers, use the HTTPS Git url of the sample:
Copy file name to clipboardExpand all lines: apache-php/README.md
+7-11Lines changed: 7 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,11 @@
1
1
## Compose sample application
2
+
3
+
### Use with Docker Development Environments
4
+
5
+
You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later.
6
+
7
+
[Open in Docker Dev Environments <imgsrc="../open_in_new.svg"alt="Open in Docker Dev Environments"align="top"/>](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/apache-php)
8
+
2
9
### PHP application with Apache2
3
10
4
11
Project structure:
@@ -54,14 +61,3 @@ Stop and remove the containers
54
61
```
55
62
$ docker compose down
56
63
```
57
-
58
-
## Use with Docker Development Environments
59
-
60
-
You can use this sample with the Dev Environments feature of Docker Desktop.
61
-
62
-

63
-
64
-
To develop directly on the services inside containers, use the HTTPS Git url of the sample:
Copy file name to clipboardExpand all lines: django/README.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,11 @@
1
1
## Compose sample application
2
+
3
+
### Use with Docker Development Environments
4
+
5
+
You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later.
6
+
7
+
[Open in Docker Dev Environments <imgsrc="../open_in_new.svg"alt="Open in Docker Dev Environments"align="top"/>](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/django)
8
+
2
9
### Django application in dev mode
3
10
4
11
Project structure:
@@ -50,10 +57,3 @@ Stop and remove the containers
50
57
```
51
58
$ docker compose down
52
59
```
53
-
## Use with Docker Development Environments
54
-
55
-
You can use this sample with the Dev Environments feature of Docker Desktop.
56
-
To develop directly the web service inside a container, you just need to use the https git url of the sample:
Copy file name to clipboardExpand all lines: fastapi/README.md
+7-11Lines changed: 7 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,11 @@
1
1
## Compose sample application
2
+
3
+
### Use with Docker Development Environments
4
+
5
+
You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later.
6
+
7
+
[Open in Docker Dev Environments <imgsrc="../open_in_new.svg"alt="Open in Docker Dev Environments"align="top"/>](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/fastapi)
8
+
2
9
### Python/FastAPI application
3
10
4
11
Project structure:
@@ -51,14 +58,3 @@ Stop and remove the containers
51
58
```
52
59
$ docker compose down
53
60
```
54
-
55
-
## Use with Docker Development Environments
56
-
57
-
You can use this sample with the Dev Environments feature of Docker Desktop.
58
-
59
-

60
-
61
-
To develop directly on the services inside containers, use the HTTPS Git url of the sample:
Copy file name to clipboardExpand all lines: flask-redis/README.md
+6-11Lines changed: 6 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
## Compose sample application
2
2
3
+
### Use with Docker Development Environments
4
+
5
+
You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later.
6
+
7
+
[Open in Docker Dev Environments <imgsrc="../open_in_new.svg"alt="Open in Docker Dev Environments"align="top"/>](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/flask-redis)
8
+
3
9
### Python/Flask application using a Redis database
4
10
5
11
Project structure:
@@ -80,14 +86,3 @@ Stop and remove the containers
80
86
```
81
87
$ docker compose down
82
88
```
83
-
84
-
## Use with Docker Development Environments
85
-
86
-
You can use this sample with the Dev Environments feature of Docker Desktop.
87
-
88
-

89
-
90
-
To develop directly on the services inside containers, use the HTTPS Git url of the sample:
Copy file name to clipboardExpand all lines: flask/README.md
+7-11Lines changed: 7 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,11 @@
1
1
## Compose sample application
2
+
3
+
### Use with Docker Development Environments
4
+
5
+
You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later.
6
+
7
+
[Open in Docker Dev Environments <imgsrc="../open_in_new.svg"alt="Open in Docker Dev Environments"align="top"/>](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/flask)
8
+
2
9
### Python/Flask application
3
10
4
11
Project structure:
@@ -55,14 +62,3 @@ Stop and remove the containers
55
62
```
56
63
$ docker compose down
57
64
```
58
-
59
-
## Use with Docker Development Environments
60
-
61
-
You can use this sample with the Dev Environments feature of Docker Desktop.
62
-
63
-

64
-
65
-
To develop directly on the services inside containers, use the HTTPS Git url of the sample:
0 commit comments