-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
112 lines (106 loc) · 2.5 KB
/
Copy pathdocker-compose.yml
File metadata and controls
112 lines (106 loc) · 2.5 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: '3.8'
services:
seshat-1:
build: .
image: seshat:latest
container_name: seshat-1
hostname: seshat-1
ports:
- "6379:6379" # Redis client port
- "7379:7379" # Internal Raft RPC port
volumes:
- ./data1:/var/lib/seshat
- ./config/node1.toml:/app/config/node.toml:ro
environment:
- NODE_ID=1
- RUST_LOG=seshat=debug,raft=info
- RUST_BACKTRACE=1
networks:
- seshat-net
restart: unless-stopped
seshat-2:
build: .
image: seshat:latest
container_name: seshat-2
hostname: seshat-2
ports:
- "6380:6379" # Redis client port
- "7380:7379" # Internal Raft RPC port
volumes:
- ./data2:/var/lib/seshat
- ./config/node2.toml:/app/config/node.toml:ro
environment:
- NODE_ID=2
- RUST_LOG=seshat=debug,raft=info
- RUST_BACKTRACE=1
networks:
- seshat-net
restart: unless-stopped
depends_on:
- seshat-1
seshat-3:
build: .
image: seshat:latest
container_name: seshat-3
hostname: seshat-3
ports:
- "6381:6379" # Redis client port
- "7381:7379" # Internal Raft RPC port
volumes:
- ./data3:/var/lib/seshat
- ./config/node3.toml:/app/config/node.toml:ro
environment:
- NODE_ID=3
- RUST_LOG=seshat=debug,raft=info
- RUST_BACKTRACE=1
networks:
- seshat-net
restart: unless-stopped
depends_on:
- seshat-1
seshat-4:
build: .
image: seshat:latest
container_name: seshat-4
hostname: seshat-4
ports:
- "6382:6379" # Redis client port
- "7382:7379" # Internal Raft RPC port
volumes:
- ./data4:/var/lib/seshat
- ./config/node4.toml:/app/config/node.toml:ro
environment:
- NODE_ID=4
- RUST_LOG=seshat=debug,raft=info
- RUST_BACKTRACE=1
networks:
- seshat-net
restart: unless-stopped
depends_on:
- seshat-1
seshat-5:
build: .
image: seshat:latest
container_name: seshat-5
hostname: seshat-5
ports:
- "6383:6379" # Redis client port
- "7383:7379" # Internal Raft RPC port
volumes:
- ./data5:/var/lib/seshat
- ./config/node5.toml:/app/config/node.toml:ro
environment:
- NODE_ID=5
- RUST_LOG=seshat=debug,raft=info
- RUST_BACKTRACE=1
networks:
- seshat-net
restart: unless-stopped
depends_on:
- seshat-1
networks:
seshat-net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16