Skip to content

Commit d937f2c

Browse files
committed
update compose.yml
1 parent 94253a6 commit d937f2c

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

docker-compose.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ services:
4141
container_name: mock_core
4242
restart: always
4343
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
4449

4550
alerts:
4651
image: c42/mock-microservice-endpoints:1.0
@@ -50,6 +55,11 @@ services:
5055
container_name: mock_alerts
5156
restart: always
5257
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
5363

5464
alert-rules:
5565
image: c42/mock-microservice-endpoints:1.0
@@ -59,6 +69,11 @@ services:
5969
container_name: mock_alert_rules
6070
restart: always
6171
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
6277

6378
detection-lists:
6479
image: c42/mock-microservice-endpoints:1.0
@@ -68,6 +83,11 @@ services:
6883
container_name: mock_detection_lists
6984
restart: always
7085
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
7191

7292
cases:
7393
image: c42/mock-microservice-endpoints:1.0
@@ -77,6 +97,11 @@ services:
7797
container_name: mock_cases
7898
restart: always
7999
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
80105

81106
storage:
82107
image: c42/mock-microservice-endpoints:1.0
@@ -86,6 +111,11 @@ services:
86111
container_name: mock_storage
87112
restart: always
88113
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
89119

90120
connected-server:
91121
image: c42/mock-microservice-endpoints:1.0
@@ -95,6 +125,11 @@ services:
95125
container_name: mock_connected_server
96126
restart: always
97127
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
98133

99134
audit-log:
100135
image: c42/mock-microservice-endpoints:1.0
@@ -104,6 +139,11 @@ services:
104139
container_name: mock_audit_log
105140
restart: always
106141
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
107147

108148
file-events:
109149
image: c42/mock-microservice-endpoints:1.0
@@ -113,6 +153,11 @@ services:
113153
container_name: mock_file_events
114154
restart: always
115155
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
116161

117162
preservation-data-service:
118163
image: c42/mock-microservice-endpoints:1.0
@@ -122,6 +167,11 @@ services:
122167
container_name: mock_preservation_data_service
123168
restart: always
124169
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
125175

126176
exfiltration-data-service:
127177
image: c42/mock-microservice-endpoints:1.0
@@ -131,6 +181,11 @@ services:
131181
container_name: mock_exfiltration_data_service
132182
restart: always
133183
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
134189

135190
trusted-activities:
136191
image: c42/mock-microservice-endpoints:1.0
@@ -140,3 +195,8 @@ services:
140195
container_name: mock_trusted_activities
141196
restart: always
142197
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

Comments
 (0)