diff --git a/docker-compose.yml b/docker-compose.yml index b694b47..7da75c3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -241,7 +241,10 @@ services: - ./docker/rspamd/local.d:/etc/rspamd/local.d:ro - ${DATA_ROOT:-/NO-.env-FOUND-RUN-deploy_webmail.sh-init-FIRST}/rspamd:/var/lib/rspamd healthcheck: - test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:11334/ping | grep -qi pong"] + # rspamc, not wget/curl: the rspamd image ships neither, so the obvious + # HTTP probe fails 127 forever and the container sits "unhealthy" while + # the engine is answering perfectly. + test: ["CMD-SHELL", "rspamc stat > /dev/null 2>&1"] interval: 30s timeout: 5s retries: 5 diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index d73315d..1b482e3 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -92,7 +92,10 @@ services: - "127.0.0.1:11333:11333" # scan worker (/checkv2) - "127.0.0.1:11334:11334" # controller (/learnspam, /stat) healthcheck: - test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:11334/ping | grep -qi pong"] + # rspamc, not wget/curl: the rspamd image ships neither, so the obvious + # HTTP probe fails 127 forever and the container sits "unhealthy" while + # the engine is answering perfectly. + test: ["CMD-SHELL", "rspamc stat > /dev/null 2>&1"] interval: 10s timeout: 5s retries: 12