mirror of
https://github.com/Lore09/Tesi-Magistrale.git
synced 2025-12-19 12:24:31 +00:00
nats server configuration
This commit is contained in:
11
wasm-component-template/nats/nats-leaf/docker-compose.yaml
Normal file
11
wasm-component-template/nats/nats-leaf/docker-compose.yaml
Normal 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
|
||||
7
wasm-component-template/nats/nats-leaf/nats-leaf.conf
Normal file
7
wasm-component-template/nats/nats-leaf/nats-leaf.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
leafnodes {
|
||||
remotes = [
|
||||
{
|
||||
url: "nats://192.168.1.152"
|
||||
},
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user