From ab01bb7cb90cb16f5355aca8a0ddb27b15a3a633 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Mar 2026 17:46:53 +0800 Subject: [PATCH] Fix docker health check endpoint --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e109eb9..86a1cfb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,8 +12,8 @@ services: - .env restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"] + test: ["CMD", "python", "-c", "from urllib.request import urlopen; urlopen('http://localhost:8000/admin/api/health', timeout=5).read()"] interval: 30s timeout: 10s retries: 3 - start_period: 10s \ No newline at end of file + start_period: 10s