forked from ardalis/pluralsight-ddd-fundamentals
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
113 lines (105 loc) · 2.87 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: "2"
services:
# https://zgadzaj.com/development/docker/docker-compose/containers/rabbitmq
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: ddd.rabbitmq
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports: # uses 5672 internally
- 15673:15672
frontdesk-db:
image: mcr.microsoft.com/mssql/server:2019-CU3-ubuntu-18.04
container_name: ddd.frontdesk-db
environment:
SA_PASSWORD: "P@ssW0rd!"
ACCEPT_EULA: "Y"
ports:
- 1434:1433 # exposed just for debugging purposes
frontdesk-api:
build:
context: .
dockerfile: ./FrontDesk/src/FrontDesk.Api/Dockerfile
image: ddd.frontdesk.api
container_name: ddd.frontdesk.api
ports:
- 5200:80
environment:
- ASPNETCORE_ENVIRONMENT=Docker
- "ASPNETCORE_URLS=http://+"
restart: on-failure
depends_on:
- rabbitmq
- frontdesk-db
frontdesk-blazor:
build:
context: .
dockerfile: ./FrontDesk/src/FrontDesk.Blazor.Host/Dockerfile
image: ddd.frontdesk.blazor
container_name: ddd.frontdesk.blazor
ports:
- 5100:80
environment:
- ASPNETCORE_ENVIRONMENT=Docker
- "ASPNETCORE_URLS=http://+"
restart: on-failure
depends_on:
- frontdesk-api
clinicmanagement-db:
image: mcr.microsoft.com/mssql/server:2019-CU3-ubuntu-18.04
container_name: ddd.clinicmanagement-db
environment:
SA_PASSWORD: "P@ssW0rd!"
ACCEPT_EULA: "Y"
ports:
- 1435:1433 # exposed just for debugging purposes
clinicmanagement-api:
build:
context: .
dockerfile: ./ClinicManagement/src/ClinicManagement.Api/Dockerfile
image: ddd.clinicmanagement.api
container_name: ddd.clinicmanagement.api
ports:
- 6200:80
environment:
- ASPNETCORE_ENVIRONMENT=Docker
- "ASPNETCORE_URLS=http://+"
restart: on-failure
depends_on:
- rabbitmq
- clinicmanagement-db
clinicmanagement-blazor:
build:
context: .
dockerfile: ./ClinicManagement/src/ClinicManagement.Blazor.Host/Dockerfile
image: ddd.clinicmanagement.blazor
container_name: ddd.clinicmanagement.blazor
ports:
- 6100:80
environment:
- ASPNETCORE_ENVIRONMENT=Docker
- "ASPNETCORE_URLS=http://+"
restart: on-failure
depends_on:
- clinicmanagement-api
mailserver:
image: jijiechen/papercut:latest
container_name: ddd.papercut
ports: # exposes port 25 internally
- 37409:37408
vet-clinic-public:
build:
context: .
dockerfile: ./VetClinicPublic/src/VetClinicPublic/Dockerfile
image: ddd.vet-clinic-public
container_name: ddd.vet-clinic.public
ports:
- 7100:80
environment:
- ASPNETCORE_ENVIRONMENT=Docker
- "ASPNETCORE_URLS=http://+"
restart: on-failure
depends_on:
- rabbitmq
- mailserver