From c4e3b6a7e45c8be261dfbf4f83f18ef69a73045a Mon Sep 17 00:00:00 2001 From: Tudor Date: Thu, 26 Mar 2026 10:14:59 +0000 Subject: [PATCH] fix(typesense): use TCP check for healthcheck, no curl/wget available Typesense image has neither curl nor wget. Use bash /dev/tcp for a simple port connectivity check instead. Co-Authored-By: Claude Opus 4.6 --- docker-compose.portainer.yml | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.portainer.yml b/docker-compose.portainer.yml index c2ab5a5..669aec1 100644 --- a/docker-compose.portainer.yml +++ b/docker-compose.portainer.yml @@ -97,7 +97,7 @@ services: - backend restart: unless-stopped healthcheck: - test: ["CMD", "wget", "--spider", "-q", "http://localhost:8108/health"] + test: ["CMD-SHELL", "cat < /dev/tcp/localhost/8108"] interval: 15s timeout: 5s retries: 5 diff --git a/docker-compose.yml b/docker-compose.yml index a57b049..0041d3a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -90,7 +90,7 @@ services: - schoolcompare-network restart: unless-stopped healthcheck: - test: ["CMD", "wget", "--spider", "-q", "http://localhost:8108/health"] + test: ["CMD-SHELL", "cat < /dev/tcp/localhost/8108"] interval: 15s timeout: 5s retries: 5