From 4d5a5b674d5cda1a3df69c1d9e28a0ca53a11257 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Mon, 18 May 2026 23:00:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20web=20=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=20healthcheck=EF=BC=9A=E7=94=A8=20python=20=E6=9B=BF=E4=BB=A3?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=E7=9A=84=20curl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7948c707..80f56424 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,7 +32,7 @@ services: - "127.0.0.1:8000:8000" user: "${UID:-1000}:${GID:-1000}" healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8000/healthz"] + test: ["CMD", "python", "-c", "from urllib.request import urlopen; urlopen('http://localhost:8000/healthz')"] interval: 30s timeout: 5s retries: 3