Add healthcheck.

This commit is contained in:
Rykov
2025-12-24 04:44:23 +03:00
parent d78595467b
commit d36b8e7118
2 changed files with 26 additions and 1 deletions
+5
View File
@@ -10,6 +10,11 @@ services:
STAN: ${STAN}
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)'" ]
interval: 30s
timeout: 5s
retries: 3
volumes:
stan_data: