|
|
@@ -41,19 +41,19 @@ services:
|
|
|
|
|
|
nats:
|
|
|
image: nats:2.10-alpine
|
|
|
- # -js : JetStream enabled
|
|
|
- # -sd /data : store dir (mounted from natsdata volume)
|
|
|
- # -m 8222 : HTTP monitoring port
|
|
|
- # -ms 10G : max_storage cap. M11 NATS investigation set
|
|
|
- # this explicitly after the default (~5.5 GiB on
|
|
|
- # parres with 6.5 GiB free) was exceeded by
|
|
|
- # accumulated ALERTS data. With the docker prune
|
|
|
- # (2026-06-16) we now have 11 GiB free, so 10G
|
|
|
- # is safe. See M11_NATS_INVESTIGATION.md.
|
|
|
- command: ["-js", "-sd", "/data", "-m", "8222", "-ms", "10G"]
|
|
|
+ # -js : JetStream enabled
|
|
|
+ # -sd /data : store dir (mounted from natsdata volume)
|
|
|
+ # -m 8222 : HTTP monitoring port
|
|
|
+ # -c /etc/nats/nats.conf : load the JetStream limits from a
|
|
|
+ # config file. 2.10 does not expose max_store /
|
|
|
+ # max_mem as CLI flags; they have to come from a
|
|
|
+ # .conf. See deploy/nats/nats.conf and
|
|
|
+ # M11_NATS_INVESTIGATION.md.
|
|
|
+ command: ["-js", "-sd", "/data", "-m", "8222", "-c", "/etc/nats/nats.conf"]
|
|
|
ports: ["4222:4222", "8222:8222"] # 8222 is the monitoring HTTP
|
|
|
volumes:
|
|
|
- natsdata:/data
|
|
|
+ - ./deploy/nats/nats.conf:/etc/nats/nats.conf:ro
|
|
|
healthcheck:
|
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:8222/healthz"]
|
|
|
interval: 5s
|