forked from NHSDigital/dtos-service-insights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose-win.yaml
280 lines (261 loc) · 8.51 KB
/
compose-win.yaml
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
name: service-insights
# Define network
networks:
app-network:
driver: host
# Define services
services:
# External Dependencies
azurite:
container_name: azurite
network_mode: host
image: mcr.microsoft.com/azure-storage/azurite
command: azurite --silent
ports:
- "10000:10000"
- "10001:10001"
- "10002:10002"
azurite-setup:
container_name: azurite-setup
network_mode: host
build:
context: ./scripts
dockerfile: ./azurite/Dockerfile
depends_on:
- azurite
environment:
- AZURITE_CONNECTION_STRING=${AZURITE_CONNECTION_STRING}
- AZURITE_CONTAINER_NAME=${AZURITE_CONTAINER_NAME}
sql-database:
container_name: sql-database
network_mode: host
image: mcr.microsoft.com/mssql/server:2022-latest
ports:
- "1433:1433"
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=${PASSWORD}
healthcheck:
test:
[
"CMD-SHELL",
"grep -q 'SQL Server is now ready for client connections' /var/opt/mssql/log/errorlog || exit 1",
]
interval: 15s
timeout: 15s
retries: 5
start_period: 30s
database-setup:
container_name: database-setup
network_mode: host
build:
context: ./scripts/
dockerfile: ./database/Dockerfile
depends_on:
sql-database:
condition: service_healthy
environment:
- PASSWORD=${PASSWORD}
- DB_NAME=${DB_NAME}
- DB_CONNECTION=${DB_CONNECTION}
# BI Analytics Data Service
create-participant-screening-episode-data:
container_name: create-participant-screening-episode-data
network_mode: host
build:
context: ./src/
dockerfile: ./BIAnalyticsDataService/CreateParticipantScreeningEpisode/Dockerfile
ports:
- "6010:6010"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
- ASPNETCORE_URLS=http://*:6010
- ServiceInsightsDbConnectionString=Server=${DB_CONNECTION},1433;Database=${DB_NAME};User Id=SA;Password=${PASSWORD};TrustServerCertificate=True
create-participant-screening-profile-data:
container_name: create-participant-screening-profile-data
network_mode: host
build:
context: ./src/
dockerfile: ./BIAnalyticsDataService/CreateParticipantScreeningProfile/Dockerfile
ports:
- "6011:6011"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
- ASPNETCORE_URLS=http://*:6011
- ServiceInsightsDbConnectionString=Server=${DB_CONNECTION},1433;Database=${DB_NAME};User Id=SA;Password=${PASSWORD};TrustServerCertificate=True
# BI Analytics Service
create-participant-screening-episode:
container_name: create-participant-screening-episode
restart: always
build:
context: ./src/
dockerfile: ./BIAnalyticsService/CreateParticipantScreeningEpisode/Dockerfile
networks:
- app-network
ports:
- "6008:6008"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
- ASPNETCORE_URLS=http://*:6008
- GetEpisodeUrl=http://127.0.0.1:6060/api/GetEpisode
- CreateParticipantScreeningEpisodeUrl=http://127.0.0.1:6010/api/CreateParticipantScreeningEpisode
create-participant-screening-profile:
container_name: create-participant-screening-profile
restart: always
build:
context: ./src/
dockerfile: ./BIAnalyticsService/CreateParticipantScreeningProfile/Dockerfile
networks:
- app-network
ports:
- "6009:6009"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
- ASPNETCORE_URLS=http://*:6009
- GetParticipantUrl=http://127.0.0.1:6061/api/GetParticipant
- CreateParticipantScreeningProfileUrl=http://127.0.0.1:6011/api/CreateParticipantScreeningProfile
- DemographicsServiceUrl=http://127.0.0.1:6080/api/GetDemographicsData
# Demographics Service
get-demographics-data:
container_name: get-demographics-data
restart: always
build:
context: ./src/
dockerfile: ./DemographicsService/GetDemographicsData/Dockerfile
networks:
- app-network
ports:
- "6080:6080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://*:6080
# Episode Data Service
create-episode:
container_name: create-episode
network_mode: host
build:
context: ./src/
dockerfile: ./EpisodeDataService/CreateEpisode/Dockerfile
ports:
- "6007:6007"
environment:
- ASPNETCORE_URLS=http://*:6007
- ServiceInsightsDbConnectionString=Server=127.0.0.1,1433;Database=${DB_NAME};User Id=SA;Password=${PASSWORD};TrustServerCertificate=True
get-episode:
container_name: get-episode
network_mode: host
build:
context: ./src/
dockerfile: ./EpisodeDataService/GetEpisode/Dockerfile
ports:
- "6070:6070"
environment:
- FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
- ASPNETCORE_URLS=http://*:6070
- ServiceInsightsDbConnectionString=Server=127.0.0.1,1433;Database=${DB_NAME};User Id=SA;Password=${PASSWORD};TrustServerCertificate=True
update-episode:
container_name: update-episode
network_mode: host
build:
context: ./src/
dockerfile: ./EpisodeDataService/UpdateEpisode/Dockerfile
ports:
- "7777:7777"
environment:
- FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
- ASPNETCORE_URLS=http://*:7777
- ServiceInsightsDbConnectionString=Server=127.0.0.1,1433;Database=${DB_NAME};User Id=SA;Password=${PASSWORD};TrustServerCertificate=True
# Episode Integration Service
receive-data:
container_name: receive-data
network_mode: host
build:
context: ./src/
dockerfile: ./EpisodeIntegrationService/ReceiveData/Dockerfile
depends_on:
- azurite
ports:
- "7072:7072"
environment:
- AzureWebJobsStorage=UseDevelopmentStorage=true
- FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
- ASPNETCORE_URLS=http://*:7072
- EpisodeManagementUrl=http://127.0.0.1:6006/api/CreateUpdateEpisode
- ParticipantManagementUrl=http://127.0.0.1:7074/api/UpdateParticipant
# Episode Management Service
create-update-episode:
container_name: create-update-episode
network_mode: host
build:
context: ./src/
dockerfile: ./EpisodeManagementService/CreateUpdateEpisode/Dockerfile
ports:
- "6006:6006"
environment:
- FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
- ASPNETCORE_URLS=http://*:6006
- CreateEpisodeUrl=http://127.0.0.1:6007/api/CreateEpisode
- GetEpisodeUrl=http://127.0.0.1:6060/api/GetEpisode
- UpdateEpisodeUrl=http://127.0.0.1:7777/api/UpdateEpisode
get-episode-mgmt:
container_name: get-episode-mgmt
network_mode: host
build:
context: ./src/
dockerfile: ./EpisodeManagementService/GetEpisode/Dockerfile
ports:
- "6060:6060"
environment:
- FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
- ASPNETCORE_URLS=http://*:6060
- GetEpisodeUrl=http://127.0.0.1:6070/api/GetEpisode
# Mesh Mailbox Management Service
retrieve-mesh-file:
container_name: retrieve-mesh-file
network_mode: host
build:
context: ./src/
dockerfile: ./MeshIntegrationService/RetrieveMeshFile/Dockerfile
depends_on:
- azurite
ports:
- "6777:6777"
environment:
- AzureWebJobsStorage=UseDevelopmentStorage=true
- ASPNETCORE_ENVIRONMENT=Development
- FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
- ASPNETCORE_URLS=http://*:6777
- MeshApiBaseUrl=${MESHAPIBASEURL}
- BSSMailBox=${BSSMAILBOX}
- BSSContainerName=${AZURITE_CONTAINER_NAME}
- MeshPassword=${MESHPASSWORD}
- MeshSharedKey=${MESHSHAREDKEY}
- MeshKeyPassphrase=${MESHKEYPASSPHRASE}
- TimerExpression=*/5 * * * *
# Participant Management Service
get-participant:
container_name: get-participant
network_mode: host
build:
context: ./src/
dockerfile: ./ParticipantManagementService/GetParticipant/Dockerfile
ports:
- "6061:6061"
environment:
- FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
- ASPNETCORE_URLS=http://*:6061
update-participant:
container_name: update-participant
network_mode: host
build:
context: ./src/
dockerfile: ./ParticipantManagementService/UpdateParticipant/Dockerfile
ports:
- "7074:7074"
environment:
- FUNCTIONS_WORKER_RUNTIME=dotnet-isolated
- ASPNETCORE_URLS=http://*:7074