chore: downgrade mongo image to 7.0 and add healthcheck for komodo-db service

This commit is contained in:
nathan 2026-04-22 23:24:28 -04:00
parent 2ff6d27251
commit 96e841d488

View File

@ -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: