From ba003ae978d6f1bf096b12f2acd6681e3dce8ec7 Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Wed, 6 Aug 2025 17:24:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=BA=94=E7=94=A8=20CloudSav?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- cloudsaver/0.6.0/docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloudsaver/0.6.0/docker-compose.yml b/cloudsaver/0.6.0/docker-compose.yml index fc794c230..0890d43a0 100644 --- a/cloudsaver/0.6.0/docker-compose.yml +++ b/cloudsaver/0.6.0/docker-compose.yml @@ -22,7 +22,8 @@ services: environment: - TZ=Asia/Shanghai healthcheck: - test: [ "CMD", "sh", "-c", "curl -s -o /dev/null -w '%{http_code}' http://localhost:8008/health | grep -Eq '^(200|204|301|302|304)$'" ] + test: > + CMD-SHELL node -e "require('http').get('http://localhost:8008/health', res => (res.statusCode >= 200 && res.statusCode < 400) ? process.exit(0) : process.exit(1)).on('error', () => process.exit(1))" interval: 30s timeout: 3s start_period: 5s