Simplify healthcheck implementation and update Docker healthcheck command.

This commit is contained in:
Rykov
2026-03-22 01:07:37 +03:00
parent f32ccf4c9f
commit a53a82a151
2 changed files with 2 additions and 15 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ services:
whiteids: ${whiteids}
rollback: ${rollback}
healthcheck:
test: [ "CMD-SHELL", "python3 -c 'import requests; r=requests.get(\"http://127.0.0.1:8813/healthz\"); exit(0 if r.status_code==200 else 1)'" ]
test: ["CMD", "curl", "-f", "http://127.0.0.1:8813/healthz"]
interval: 30s
timeout: 5s
retries: 3