fixed nats healthcheck
This commit is contained in:
6
ci/prod/compose/Dockerfile.nats
Normal file
6
ci/prod/compose/Dockerfile.nats
Normal file
@@ -0,0 +1,6 @@
|
||||
FROM docker.io/library/busybox:1.36.1-musl AS busybox
|
||||
|
||||
FROM docker.io/library/nats:latest
|
||||
COPY --from=busybox /bin/busybox /bin/busybox
|
||||
COPY --from=busybox /bin/sh /bin/sh
|
||||
COPY --from=busybox /bin/wget /bin/wget
|
||||
@@ -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