fix: relax Typesense health gate for RomM automation

This commit is contained in:
2026-06-23 14:55:25 +00:00
parent 879bfbba26
commit 5187ac9e40

View File

@@ -34,7 +34,7 @@ services:
ggrequestz-redis: ggrequestz-redis:
condition: service_healthy condition: service_healthy
ggrequestz-typesense: ggrequestz-typesense:
condition: service_healthy condition: service_started
ports: ports:
- "${GGREQUESTZ_PORT:-3003}:3000" - "${GGREQUESTZ_PORT:-3003}:3000"
environment: environment:
@@ -115,12 +115,9 @@ services:
command: ["--data-dir", "/data", "--api-key", "${GGREQUESTZ_TYPESENSE_API_KEY:?set GGREQUESTZ_TYPESENSE_API_KEY in .env}", "--enable-cors"] command: ["--data-dir", "/data", "--api-key", "${GGREQUESTZ_TYPESENSE_API_KEY:?set GGREQUESTZ_TYPESENSE_API_KEY in .env}", "--enable-cors"]
volumes: volumes:
- ${TRUENAS_DOCKER_ROOT:-/mnt/HomeStorage02/Docker}/RomMAutomation/ggrequestz/typesense:/data - ${TRUENAS_DOCKER_ROOT:-/mnt/HomeStorage02/Docker}/RomMAutomation/ggrequestz/typesense:/data
healthcheck: # Typesense's official image does not consistently include wget/curl, so avoid
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8108/health"] # a container-internal HTTP healthcheck here. GG Requestz can still retry while
interval: 30s # Typesense finishes startup.
timeout: 5s
retries: 5
start_period: 10s
networks: networks:
- romm-automation - romm-automation