@@ -41,6 +41,11 @@ services:
41
41
container_name : mock_core
42
42
restart : always
43
43
command : mock docs/core.yml -p 4200 -h 0.0.0.0
44
+ healthcheck :
45
+ test : ["CMD-SHELL", "curl -f http://core:4200 || exit 1"]
46
+ interval : 30s
47
+ timeout : 15s
48
+ retries : 3
44
49
45
50
alerts :
46
51
image : c42/mock-microservice-endpoints:1.0
@@ -50,6 +55,11 @@ services:
50
55
container_name : mock_alerts
51
56
restart : always
52
57
command : mock docs/alerts.yml -p 4200 -h 0.0.0.0
58
+ healthcheck :
59
+ test : ["CMD-SHELL", "curl -f http://alerts:4200 || exit 1"]
60
+ interval : 30s
61
+ timeout : 15s
62
+ retries : 3
53
63
54
64
alert-rules :
55
65
image : c42/mock-microservice-endpoints:1.0
@@ -59,6 +69,11 @@ services:
59
69
container_name : mock_alert_rules
60
70
restart : always
61
71
command : mock docs/alert-rules.yml -p 4200 -h 0.0.0.0
72
+ healthcheck :
73
+ test : ["CMD-SHELL", "curl -f http://alert-rules:4200 || exit 1"]
74
+ interval : 30s
75
+ timeout : 15s
76
+ retries : 3
62
77
63
78
detection-lists :
64
79
image : c42/mock-microservice-endpoints:1.0
@@ -68,6 +83,11 @@ services:
68
83
container_name : mock_detection_lists
69
84
restart : always
70
85
command : mock docs/detection-lists.yml -p 4200 -h 0.0.0.0
86
+ healthcheck :
87
+ test : ["CMD-SHELL", "curl -f http://detection-lists:4200 || exit 1"]
88
+ interval : 30s
89
+ timeout : 15s
90
+ retries : 3
71
91
72
92
cases :
73
93
image : c42/mock-microservice-endpoints:1.0
@@ -77,6 +97,11 @@ services:
77
97
container_name : mock_cases
78
98
restart : always
79
99
command : mock docs/cases.yml -p 4200 -h 0.0.0.0
100
+ healthcheck :
101
+ test : ["CMD-SHELL", "curl -f http://cases:4200 || exit 1"]
102
+ interval : 30s
103
+ timeout : 15s
104
+ retries : 3
80
105
81
106
storage :
82
107
image : c42/mock-microservice-endpoints:1.0
@@ -86,6 +111,11 @@ services:
86
111
container_name : mock_storage
87
112
restart : always
88
113
command : mock docs/storage.yml -p 4200 -h 0.0.0.0
114
+ healthcheck :
115
+ test : ["CMD-SHELL", "curl -f http://storage:4200 || exit 1"]
116
+ interval : 30s
117
+ timeout : 15s
118
+ retries : 3
89
119
90
120
connected-server :
91
121
image : c42/mock-microservice-endpoints:1.0
@@ -95,6 +125,11 @@ services:
95
125
container_name : mock_connected_server
96
126
restart : always
97
127
command : mock docs/connected-server.yml -p 4200 -h 0.0.0.0
128
+ healthcheck :
129
+ test : ["CMD-SHELL", "curl -f http://connected-server:4200 || exit 1"]
130
+ interval : 30s
131
+ timeout : 15s
132
+ retries : 3
98
133
99
134
audit-log :
100
135
image : c42/mock-microservice-endpoints:1.0
@@ -104,6 +139,11 @@ services:
104
139
container_name : mock_audit_log
105
140
restart : always
106
141
command : mock docs/audit-log.yml -p 4200 -h 0.0.0.0
142
+ healthcheck :
143
+ test : ["CMD-SHELL", "curl -f http://audit-log:4200 || exit 1"]
144
+ interval : 30s
145
+ timeout : 15s
146
+ retries : 3
107
147
108
148
file-events :
109
149
image : c42/mock-microservice-endpoints:1.0
@@ -113,6 +153,11 @@ services:
113
153
container_name : mock_file_events
114
154
restart : always
115
155
command : mock docs/file-events.yml -p 4200 -h 0.0.0.0
156
+ healthcheck :
157
+ test : ["CMD-SHELL", "curl -f http://file-events:4200 || exit 1"]
158
+ interval : 30s
159
+ timeout : 15s
160
+ retries : 3
116
161
117
162
preservation-data-service :
118
163
image : c42/mock-microservice-endpoints:1.0
@@ -122,6 +167,11 @@ services:
122
167
container_name : mock_preservation_data_service
123
168
restart : always
124
169
command : mock docs/preservation-data-service.yml -p 4200 -h 0.0.0.0
170
+ healthcheck :
171
+ test : ["CMD-SHELL", "curl -f http://preservation-data-service:4200 || exit 1"]
172
+ interval : 30s
173
+ timeout : 15s
174
+ retries : 3
125
175
126
176
exfiltration-data-service :
127
177
image : c42/mock-microservice-endpoints:1.0
@@ -131,6 +181,11 @@ services:
131
181
container_name : mock_exfiltration_data_service
132
182
restart : always
133
183
command : mock docs/exfiltration-data-service.yml -p 4200 -h 0.0.0.0
184
+ healthcheck :
185
+ test : ["CMD-SHELL", "curl -f http://exfiltration-data-service:4200 || exit 1"]
186
+ interval : 30s
187
+ timeout : 15s
188
+ retries : 3
134
189
135
190
trusted-activities :
136
191
image : c42/mock-microservice-endpoints:1.0
@@ -140,3 +195,8 @@ services:
140
195
container_name : mock_trusted_activities
141
196
restart : always
142
197
command : mock docs/trusted-activities.yml -p 4200 -h 0.0.0.0
198
+ healthcheck :
199
+ test : ["CMD-SHELL", "curl -f http://trusted-activities:4200 || exit 1"]
200
+ interval : 30s
201
+ timeout : 15s
202
+ retries : 3
0 commit comments