feat(go): add nats kafka ingest bridge
This commit is contained in:
12
deploy/nats/docker-compose.yml
Normal file
12
deploy/nats/docker-compose.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
services:
|
||||
nats:
|
||||
image: nats:2.10-alpine
|
||||
container_name: lingniu-nats
|
||||
restart: always
|
||||
command: ["-c", "/etc/nats/nats-server.conf"]
|
||||
ports:
|
||||
- "172.17.111.56:4222:4222"
|
||||
- "172.17.111.56:8222:8222"
|
||||
volumes:
|
||||
- /opt/lingniu-nats/conf/nats-server.conf:/etc/nats/nats-server.conf:ro
|
||||
- /opt/lingniu-nats/data:/data
|
||||
13
deploy/nats/nats-server.conf
Normal file
13
deploy/nats/nats-server.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
server_name: lingniu-vehicle-nats
|
||||
port: 4222
|
||||
http_port: 8222
|
||||
|
||||
jetstream {
|
||||
store_dir: "/data/jetstream"
|
||||
max_mem_store: 1G
|
||||
max_file_store: 200G
|
||||
}
|
||||
|
||||
authorization {
|
||||
timeout: 2
|
||||
}
|
||||
Reference in New Issue
Block a user