generated from fullstackhero/dotnet-starter-kit
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.mysql.yml
32 lines (32 loc) · 1022 Bytes
/
docker-compose.mysql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: '3.4'
services:
dotnetwebapi:
image: "iammukeshm/dotnet-webapi"
environment:
- "MultitenancySettings__ConnectionString=server=db;uid=root;pwd=root;dat\
abase=rootTenantDb;Allow User Variables=True"
- "MultitenancySettings__DBProvider=mysql"
- "ASPNETCORE_Kestrel__Certificates__Default__Password=securePassword123"
- "ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx"
- "ASPNETCORE_URLS=https://+:5052;http://+:5062"
volumes:
- ~/.aspnet/https:/https:ro
ports:
- "5052:5052"
- "5062:5062"
depends_on:
db:
condition: service_healthy
restart: on-failure
container_name: dotnet-webapi-with-mysql
db:
image: "mysql:latest"
environment:
- "MYSQL_ROOT_PASSWORD=root"
- "MYSQL_PASSWORD=root"
container_name: mysql
healthcheck:
test: "/usr/bin/mysql --user=root --password=root --execute \"SHOW DATABASES;\""
interval: 2s
timeout: 20s
retries: 10