-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.25 KB
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
version: '3.8'
services:
db:
image: postgres:15
container_name: hospital-db
restart: always
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: hospital
ports:
- "5433:5432"
networks:
- hospital-admin-network
webapi:
build:
context: .
dockerfile: Asgr.HospitalAdmin.WebApi/Dockerfile
container_name: hospital-api
restart: always
depends_on:
- db
ports:
- "9000:80"
- "9443:443"
environment:
ASPNETCORE_URLS: "https://+;http://+"
ASPNETCORE_Kestrel__Certificates__Default__Password: "password"
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/aspnetapp.pfx
ConnectionStrings__Database: "Host=db;Port=5432;Database=hospital;Integrated Security=true;Username=admin;Password=admin"
networks:
- hospital-admin-network
volumes:
- ./crt:/https/
dataseed:
build:
context: .
dockerfile: Asgr.HospitalAdmin.DataSeedService/Dockerfile
container_name: hospital-dataseed
depends_on:
- webapi
environment:
ApiUrl: "https://webapi/api"
GeneratedPatientsCount: 100
networks:
- hospital-admin-network
networks:
hospital-admin-network:
driver: bridge