From 2ec117ccbb6449e2c20c8ac8f32ea0da3c4141ee Mon Sep 17 00:00:00 2001 From: Stefano Ortolani Date: Mon, 28 Oct 2024 14:25:48 +0000 Subject: [PATCH] Fix healthchecks --- docker-compose.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index a86c2d3..4ec9704 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,8 @@ services: interval: 2s timeout: 1s retries: 3 - start_period: 30s + start_period: 5s + start_interval: 5s db: # We use MariaDB because it supports ARM and has the expected collations @@ -49,6 +50,7 @@ services: timeout: 1s retries: 3 start_period: 30s + start_interval: 5s misp-core: image: ghcr.io/misp/misp-docker/misp-core:${CORE_RUNNING_TAG:-latest} @@ -75,6 +77,8 @@ services: condition: service_healthy db: condition: service_healthy + misp-modules: + condition: service_healthy healthcheck: test: curl -ks ${BASE_URL:-https://localhost}/users/heartbeat > /dev/null || exit 1 interval: 2s @@ -223,6 +227,13 @@ services: depends_on: redis: condition: service_healthy + healthcheck: + test: "/bin/bash -c '