fixed nats healthcheck
This commit is contained in:
@@ -15,7 +15,9 @@ networks:
|
||||
services:
|
||||
sendico_nats:
|
||||
<<: *common-env
|
||||
image: docker.io/library/nats:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.nats
|
||||
container_name: sendico-nats
|
||||
restart: unless-stopped
|
||||
command:
|
||||
@@ -34,7 +36,7 @@ services:
|
||||
- "0.0.0.0:${NATS_PORT}:${NATS_PORT}"
|
||||
- "0.0.0.0:${NATS_MONITORING_PORT}:${NATS_MONITORING_PORT}"
|
||||
healthcheck:
|
||||
test: wget http://localhost:8222/healthz -q -S -O -
|
||||
test: wget http://localhost:${NATS_MONITORING_PORT}/healthz -q -S -O -
|
||||
start_period: 3s
|
||||
retries: 3
|
||||
timeout: 3s
|
||||
|
||||
Reference in New Issue
Block a user