mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
1.MongoDB、Redis兼容集群模式
2.离线数据接口化访问
This commit is contained in:
61
docker/3rd/nats/nats_cluster/docker-compose.yaml
Normal file
61
docker/3rd/nats/nats_cluster/docker-compose.yaml
Normal file
@@ -0,0 +1,61 @@
|
||||
version: '3'
|
||||
services:
|
||||
nats1:
|
||||
restart: always
|
||||
image: nats:2.7.3
|
||||
container_name: nats1
|
||||
ports:
|
||||
- "4222:4222/tcp"
|
||||
- "8222:8222/tcp"
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime
|
||||
- /etc/timezone:/etc/timezone
|
||||
- ./conf/nats1/nats-server.conf:/nats-server.conf
|
||||
- ./data/nats1:/nats/storage
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.00'
|
||||
memory: 512M
|
||||
|
||||
nats2:
|
||||
restart: always
|
||||
image: nats:2.7.3
|
||||
container_name: nats2
|
||||
ports:
|
||||
- "4223:4222/tcp"
|
||||
- "8223:8222/tcp"
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime
|
||||
- /etc/timezone:/etc/timezone
|
||||
- ./conf/nats2/nats-server.conf:/nats-server.conf
|
||||
- ./data/nats2:/nats/storage
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.00'
|
||||
memory: 512M
|
||||
|
||||
nats3:
|
||||
restart: always
|
||||
image: nats:2.7.3
|
||||
container_name: nats3
|
||||
ports:
|
||||
- "4224:4222/tcp"
|
||||
- "8224:8222/tcp"
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime
|
||||
- /etc/timezone:/etc/timezone
|
||||
- ./conf/nats3/nats-server.conf:/nats-server.conf
|
||||
- ./data/nats3:/nats/storage
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.00'
|
||||
memory: 512M
|
||||
Reference in New Issue
Block a user