-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
50 lines (50 loc) · 1.7 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '2'
services:
nats-1:
image: nats
command: -p 4222 --http_port 8080 -cluster nats://0.0.0.0:5222 -routes nats://nats-2:5222,nats://nats-3:5222 -D
logging:
driver: json-file
options:
max-file: '1'
max-size: 1mb
nats-2:
image: nats
command: -p 4222 --http_port 8080 -cluster nats://0.0.0.0:5222 -routes nats://nats-1:5222,nats://nats-3:5222 -D
logging:
driver: json-file
options:
max-file: '1'
max-size: 1mb
nats-3:
image: nats
command: -p 4222 --http_port 8080 -cluster nats://0.0.0.0:5222 -routes nats://nats-1:5222,nats://nats-2:5222 -D
logging:
driver: json-file
options:
max-file: '1'
max-size: 1mb
nats: # can scale up
image: nats
links:
- nats-1:nats-1
- nats-2:nats-2
- nats-3:nats-3
command: -p 4222 --http_port 8080 -cluster nats://0.0.0.0:5222 -routes nats://nats-1:5222,nats://nats-2:5222,nats://nats-3:5222 -D
logging:
driver: json-file
options:
max-file: '1'
max-size: 1mb
keydb-cluster-1:
image: eqalpha/keydb:x86_64_v0.9.5
entrypoint: ["keydb-server"]
command: ["/etc/keydb/redis.conf", "--port", "6379", "--multi-master", "yes", "--protected-mode", "no", "--bind", "0.0.0.0"]
keydb-cluster-2:
image: eqalpha/keydb:x86_64_v0.9.5
entrypoint: ["keydb-server"]
command: ["/etc/keydb/redis.conf", "--port", "6379", "--multi-master", "yes", "--protected-mode", "no", "--bind", "0.0.0.0"]
keydb-cluster-3:
image: eqalpha/keydb:x86_64_v0.9.5
entrypoint: ["keydb-server"]
command: ["/etc/keydb/redis.conf", "--port", "6379", "--multi-master", "yes", "--protected-mode", "no", "--bind", "0.0.0.0"]