# NATS 2.14.x with JetStream, Experimental tier. # # JetStream is mandatory: core NATS is fire-and-forget with no persistence and no acknowledgement, # so an at-least-once destination configured against it would report success for messages that were # never stored. The adapter's validator refuses that combination. services: nats: image: nats:2.14-alpine container_name: messaging-nats ports: - "4222:4222" - "8222:8222" command: - "--jetstream" - "--store_dir=/data" - "--http_port=8222" healthcheck: test: ["CMD-SHELL", "wget -q -O- http://localhost:8222/healthz || exit 1"] interval: 5s timeout: 5s retries: 20