Skip to content

Commit 2ec117c

Browse files
committed
Fix healthchecks
1 parent 3855224 commit 2ec117c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docker-compose.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ services:
1919
interval: 2s
2020
timeout: 1s
2121
retries: 3
22-
start_period: 30s
22+
start_period: 5s
23+
start_interval: 5s
2324

2425
db:
2526
# We use MariaDB because it supports ARM and has the expected collations
@@ -49,6 +50,7 @@ services:
4950
timeout: 1s
5051
retries: 3
5152
start_period: 30s
53+
start_interval: 5s
5254

5355
misp-core:
5456
image: ghcr.io/misp/misp-docker/misp-core:${CORE_RUNNING_TAG:-latest}
@@ -75,6 +77,8 @@ services:
7577
condition: service_healthy
7678
db:
7779
condition: service_healthy
80+
misp-modules:
81+
condition: service_healthy
7882
healthcheck:
7983
test: curl -ks ${BASE_URL:-https://localhost}/users/heartbeat > /dev/null || exit 1
8084
interval: 2s
@@ -223,6 +227,13 @@ services:
223227
depends_on:
224228
redis:
225229
condition: service_healthy
230+
healthcheck:
231+
test: "/bin/bash -c '</dev/tcp/localhost/6666'"
232+
interval: 2s
233+
timeout: 1s
234+
retries: 3
235+
start_period: 5s
236+
start_interval: 5s
226237

227238
volumes:
228239
mysql_data:

0 commit comments

Comments
 (0)