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