-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose-localhost.yaml
More file actions
240 lines (240 loc) · 6.16 KB
/
compose-localhost.yaml
File metadata and controls
240 lines (240 loc) · 6.16 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
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
services:
#5005 - healthmonitor-api
#5002 - identityserver
#5001 - policyserver
#5007 - mockserver
#5000 - shoppingcart-api
#4200 - shoppingcart-web
#5003 - dashboard-web
#5006 - sqlreport-api
rabbitmq:
environment:
ACCEPT_EULA: "Y"
RABBITMQ_DEFAULT_USER: "admin"
RABBITMQ_DEFAULT_PASS: "password"
image: rabbitmq:3-management-alpine
restart: unless-stopped
ports:
- 15672:15672
- 5672:5672
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
seq:
environment:
ACCEPT_EULA: "Y"
image: datalust/seq:latest
restart: unless-stopped
ports:
- 5341:80
healthcheck:
test: curl --fail http://localhost/health || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
redis:
image: redislabs/redismod
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 1s
timeout: 3s
retries: 5
ports:
- 6379:6379
healthmonitor-api:
image: cortside/healthmonitor-api:develop
restart: unless-stopped
ports:
- 5005:5000
extra_hosts:
- ${DOCKER_HOST}:${DOCKER_HOST_IP}
volumes:
- coeus-data:/settings
healthcheck:
test: curl --fail http://localhost:5000/api/health || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
identityserver-bootstrap:
image: cortside/identityserver4:develop
user: root
depends_on:
db:
condition: "service_healthy"
volumes:
- coeus-data:/settings
command: ["/bin/sh", "-c", "unset SERVICE_EXECUTABLE; /startup.sh; cd /sql; pwsh ./update-database.ps1 -CreateDatabase -TestData -appsettings /app/appsettings.local.json"]
identityserver:
image: cortside/identityserver4:develop
restart: unless-stopped
environment:
ASPNETCORE_URLS: "http://+:5002"
expose:
- 5002
ports:
- 5002:5002
extra_hosts:
- ${DOCKER_HOST}:${DOCKER_HOST_IP}
depends_on:
- db
- identityserver-bootstrap
volumes:
- coeus-data:/settings
healthcheck:
test: curl --fail http://localhost:5000/api/health || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
policyserver:
image: cortside/policyserver:develop
restart: unless-stopped
ports:
- 5001:5001
extra_hosts:
- ${DOCKER_HOST}:${DOCKER_HOST_IP}
depends_on:
- db
- identityserver
volumes:
- coeus-data:/settings
healthcheck:
test: curl --fail http://localhost:5001/api/health || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
mockserver:
image: cortside/policyserver:develop
restart: unless-stopped
environment:
SERVICE_NAME: mockserver
ports:
- 5007:5001
extra_hosts:
- ${DOCKER_HOST}:${DOCKER_HOST_IP}
depends_on:
- db
- identityserver
volumes:
- coeus-data:/settings
healthcheck:
test: curl --fail http://localhost:5001/api/health || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
shoppingcart-bootstrap:
image: cortside/shoppingcart-api:develop
user: root
depends_on:
db:
condition: "service_healthy"
volumes:
- coeus-data:/settings
command: ["/bin/sh", "-c", "unset SERVICE_EXECUTABLE; /startup.sh; cd /sql; pwsh ./update-database.ps1 -CreateDatabase -appsettings /settings/shoppingcart-api/appsettings.local.json"]
shoppingcart-api:
image: cortside/shoppingcart-api:develop
restart: unless-stopped
ports:
- 5000:5000
extra_hosts:
- ${DOCKER_HOST}:${DOCKER_HOST_IP}
depends_on:
- db
- mockserver
- identityserver
- shoppingcart-bootstrap
volumes:
- coeus-data:/settings
healthcheck:
test: curl --fail http://localhost:5000/api/health || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
sqlreport-bootstrap:
image: cortside/sqlreport-api:develop
user: root
depends_on:
db:
condition: "service_healthy"
volumes:
- coeus-data:/settings
command: ["/bin/sh", "-c", "unset SERVICE_EXECUTABLE; /startup.sh; cd /sql; pwsh ./update-database.ps1 -CreateDatabase -appsettings /settings/sqlreport-api/app/appsettings.local.json"]
sqlreport-api:
image: cortside/sqlreport-api:develop
restart: unless-stopped
ports:
- 5006:5000
extra_hosts:
- ${DOCKER_HOST}:${DOCKER_HOST_IP}
depends_on:
- db
- mockserver
- identityserver
- sqlreport-bootstrap
volumes:
- coeus-data:/settings
healthcheck:
test: curl --fail http://localhost:5000/api/health || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
shoppingcart-web:
image: cortside/shoppingcart-web:develop
restart: unless-stopped
ports:
- 5004:8080
depends_on:
- shoppingcart-api
volumes:
- coeus-data:/settings
environment:
EXTERNAL_HOST: ${DOCKER_HOST}
healthcheck:
test: curl --fail http://localhost:8080/health || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
dashboard-web:
image: cortside/dashboard-web:develop
restart: unless-stopped
ports:
- 5003:8080
depends_on:
- identityserver
volumes:
- coeus-data:/settings
environment:
EXTERNAL_HOST: ${DOCKER_HOST}
healthcheck:
test: curl --fail http://localhost:8080/health || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
db:
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: "password1@"
image: mcr.microsoft.com/mssql/server:2022-latest
restart: unless-stopped
ports:
- 1434:1433
healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P password1@ -Q 'SELECT 1' || exit 1"]
interval: 10s
retries: 10
start_period: 10s
timeout: 3s
volumes:
coeus-data:
external: true