homelab/proxmox/services/docker-based/nats.yml
Samantha Atkins a9876bf5b5 WIP
2026-04-01 23:03:00 -04:00

30 lines
553 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: