mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 10:43:35 +02:00
Added nginx-aspnet-mysql implementation
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
a42a8531ab
commit
054de29c32
8 changed files with 232 additions and 0 deletions
33
nginx-aspnet-mysql/docker-compose.yaml
Normal file
33
nginx-aspnet-mysql/docker-compose.yaml
Normal file
|
@ -0,0 +1,33 @@
|
|||
version: "3.7"
|
||||
services:
|
||||
backend:
|
||||
build: backend
|
||||
secrets:
|
||||
- db-password
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
- ASPNETCORE_URLS=http://+:8000
|
||||
|
||||
db:
|
||||
image: mysql:8.0.19
|
||||
command: '--default-authentication-plugin=mysql_native_password'
|
||||
restart: always
|
||||
secrets:
|
||||
- db-password
|
||||
volumes:
|
||||
- db-data:/var/lib/mysql
|
||||
environment:
|
||||
- MYSQL_DATABASE=example
|
||||
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password
|
||||
proxy:
|
||||
build: proxy
|
||||
ports:
|
||||
- 80:80
|
||||
depends_on:
|
||||
- backend
|
||||
volumes:
|
||||
db-data:
|
||||
secrets:
|
||||
db-password:
|
||||
file: db/password.txt
|
Loading…
Add table
Add a link
Reference in a new issue