generated from fullstackhero/dotnet-starter-kit
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.postgresql.yml
32 lines (31 loc) · 976 Bytes
/
docker-compose.postgresql.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:
dotnet-webapi:
image: "iammukeshm/dotnet-webapi"
environment:
- "MultitenancySettings__ConnectionString=Host=db;Database=rootTenantDb;U\
sername=postgres;Password=root;Include Error Detail=true"
- "MultitenancySettings__DBProvider=postgresql"
- "ASPNETCORE_Kestrel__Certificates__Default__Password=securePassword123"
- "ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx"
- "ASPNETCORE_URLS=https://+:5053;http://+:5063"
volumes:
- ~/.aspnet/https:/https:ro
ports:
- "5053:5053"
- "5063:5063"
depends_on:
db:
condition: service_healthy
restart: on-failure
container_name: dotnet-webapi-with-postgresql
db:
image: "postgres:latest"
environment:
- "POSTGRES_PASSWORD=root"
container_name: postgresql
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5