Add NATS-over-WebSocket compose for Coolify

Configures a single NATS 2.10 service exposing a WebSocket listener on
:8080 (no_tls; Traefik terminates TLS at nats.volcanic.tes.gd) with
env-driven username/password auth and a persisted JetStream store.
This commit is contained in:
2026-08-25 09:37:57 +00:00
parent 964e506eb2
commit 49dcf78529
4 changed files with 168 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
server_name: "nats-volcanic"
port: 4222
http_port: 8222
jetstream {
store_dir: "/data"
max_memory_store: 256MB
max_file_store: 4GB
}
websocket {
port: 8080
no_tls: true
}
authorization {
users = [
{ user: $NATS_USER, password: $NATS_PASSWORD }
]
}