fix: Remove NATS healthcheck — use service_started instead
NATS minimal image has no shell tools for health probes. The API already handles NATS unavailability gracefully, so service_started is sufficient. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -28,12 +28,6 @@ services:
|
|||||||
- ./nats.conf:/etc/nats/nats.conf:ro
|
- ./nats.conf:/etc/nats/nats.conf:ro
|
||||||
ports:
|
ports:
|
||||||
- "8089:4222" # Client connections
|
- "8089:4222" # Client connections
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "echo > /dev/tcp/localhost/4222 || exit 1"]
|
|
||||||
interval: 5s
|
|
||||||
timeout: 3s
|
|
||||||
retries: 5
|
|
||||||
start_period: 5s
|
|
||||||
|
|
||||||
api:
|
api:
|
||||||
build:
|
build:
|
||||||
@@ -62,7 +56,7 @@ services:
|
|||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
nats:
|
nats:
|
||||||
condition: service_healthy
|
condition: service_started
|
||||||
ports:
|
ports:
|
||||||
- "8088:3000"
|
- "8088:3000"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user