From 64cdb7eafb288291761f5564847d76600047db0a Mon Sep 17 00:00:00 2001 From: Pluto <86001674+aoaostar@users.noreply.github.com> Date: Sun, 15 Oct 2023 10:55:16 +0800 Subject: [PATCH] fix: docker compose healthcheck failed (#593) --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 003122bb..9b814a03 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,7 +23,7 @@ services: depends_on: - redis healthcheck: - test: [ "CMD-SHELL", "curl -s http://localhost:3000/api/status | grep -o '\"success\":\\s*true' | awk '{print $2}' | grep 'true'" ] + test: [ "CMD-SHELL", "wget -q -O - http://localhost:3000/api/status | grep -o '\"success\":\\s*true' | awk -F: '{print $2}'" ] interval: 30s timeout: 10s retries: 3