From 96e841d4889ccf7604dad7fe7787d7f0a2938de0 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 22 Apr 2026 23:24:28 -0400 Subject: [PATCH] chore: downgrade mongo image to 7.0 and add healthcheck for komodo-db service --- nodes/heimdall/core/compose.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nodes/heimdall/core/compose.yaml b/nodes/heimdall/core/compose.yaml index b89ccfa..82a3612 100644 --- a/nodes/heimdall/core/compose.yaml +++ b/nodes/heimdall/core/compose.yaml @@ -133,7 +133,7 @@ services: # --- MANAGEMENT --- komodo-db: - image: mongo:8.2.6 + image: mongo:7.0 container_name: komodo-db labels: komodo.skip: # Prevent Komodo from stopping with StopAllContainers @@ -149,6 +149,12 @@ services: environment: MONGO_INITDB_ROOT_USERNAME: ${KOMODO_DATABASE_USERNAME} MONGO_INITDB_ROOT_PASSWORD: ${KOMODO_DATABASE_PASSWORD} + healthcheck: + test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand({ ping: 1 })"] + interval: 10s + timeout: 5s + retries: 10 + start_period: 30s komodo-core: image: ghcr.io/moghtech/komodo-core:2 @@ -156,7 +162,8 @@ services: container_name: komodo-core restart: unless-stopped depends_on: - - komodo-db + komodo-db: + condition: service_healthy networks: - proxy-net ports: