nats server configuration

This commit is contained in:
2024-11-21 19:10:00 +01:00
parent b5027e0ca2
commit fd5228c46e
3 changed files with 687 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
services:
nats:
image: nats:alpine
container_name: nats
restart: always
command: -c /etc/nats/nats.conf
ports:
- "4222:4222" # client port
- "8222:8222" # monitoring port
volumes:
- ./nats-leaf.conf:/etc/nats/nats.conf

View File

@@ -0,0 +1,7 @@
leafnodes {
remotes = [
{
url: "nats://192.168.1.152"
},
]
}