homelab/proxmox/services/docker-based/nats.yml
2026-04-01 16:07:44 -04:00

30 lines
550 B
YAML

version: '3.8'
# Deploy with:
# docker stack deploy -c nats.yml nats
#
# Runs on: pve-tools
# JetStream enabled for persistent messaging.
# Services connect to nats_nats:4222 via overlay, or host:4222 externally.
services:
nats:
image: nats:latest
command:
- -c=/etc/nats/nats.conf
ports:
- 4222: 4222
- 8080: 8080
- 8222: 8223
volumes:
- nats_data:/data
configs:
- source: nats_conf
target: /etc/nats/nats.conf
configs:
nats_conf:
file: ./nats.conf
volumes:
nats_data: