Fix docker health check endpoint

This commit is contained in:
root
2026-03-28 17:46:53 +08:00
parent 3317b8e8cd
commit ab01bb7cb9

View File

@@ -12,7 +12,7 @@ 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