Add healthcheck.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user