1
0
Fork 0
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:
Esteban Solano Granados 2021-03-27 05:17:35 +00:00 committed by GitHub
parent a42a8531ab
commit 054de29c32
8 changed files with 232 additions and 0 deletions

View 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