-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (50 loc) · 1.67 KB
/
docker-compose.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.5'
services:
db:
container_name: dentalsystem-db
image: postgres
ports:
- 5438:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ./data/db:/var/lib/postgresql/data
networks:
- dental-system-network
dentalsystemwebapi:
container_name: dentalsystem-webapi
image: dental-system-web-api
build:
context: .
dockerfile: Presentation/DentalSystem.Presentation.Web.Api/Dockerfile
environment:
- ConnectionStrings__DentalSystemDbConnection=User ID=postgres;Password=postgres;Server=localhost;Port=5438;Database=DentalSystem_dev;Integrated Security=true; Pooling=true;
- AllowedOrigins__0=https://localhost:5001
- AllowedOrigins__1=http://localhost
volumes:
- data-protection:/root/.aspnet/DataProtection-Keys
network_mode: host
depends_on:
- db
dentalsystemwebui:
container_name: dentalsystem-webui
image: dental-system-web-ui
build:
context: .
dockerfile: Presentation/DentalSystem.Presentation.Web.UI/Dockerfile
volumes:
- data-protection:/root/.aspnet/DataProtection-Keys
network_mode: host
depends_on:
- dentalsystemwebapi
networks:
dental-system-network:
volumes:
database:
data-protection: