-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
61 lines (58 loc) · 1.29 KB
/
docker-compose.yml
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
51
52
53
54
55
56
57
58
59
60
61
version: '2.1'
services:
node0:
image: matrixkv
ports:
- "8080:8080"
volumes:
- ./cfg/node0.toml:/etc/cube.toml
- /data/matrixkv/node0:/data/matrixkv
command:
- --addr=node0:8080
- --cfg=/etc/cube.toml
# shard will split after 16 bytes
- --shard-capacity=16
node1:
image: matrixkv
ports:
- "8081:8080"
volumes:
- ./cfg/node1.toml:/etc/cube.toml
- /data/matrixkv/node1:/data/matrixkv
command:
- --addr=node1:8080
- --cfg=/etc/cube.toml
# shard will split after 16 bytes
- --shard-capacity=16
depends_on:
- node0
node2:
image: matrixkv
ports:
- "8082:8080"
volumes:
- ./cfg/node2.toml:/etc/cube.toml
- /data/matrixkv/node2:/data/matrixkv
command:
- --addr=node2:8080
- --cfg=/etc/cube.toml
# shard will split after 16 bytes
- --shard-capacity=16
depends_on:
- node1
node3:
image: matrixkv
ports:
- "8083:8080"
volumes:
- ./cfg/node3.toml:/etc/cube.toml
- /data/matrixkv/node3:/data/matrixkv
command:
- --addr=node3:8080
- --cfg=/etc/cube.toml
# shard will split after 16 bytes
- --shard-capacity=16
depends_on:
- node0
- node1
- node2