-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
63 lines (59 loc) · 1.17 KB
/
docker-compose.yaml
File metadata and controls
63 lines (59 loc) · 1.17 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
services:
node-1:
build: .
container_name: flux-node-1
command: >
--id=node-1
--raft-addr=node-1:7000
--grpc-addr=0.0.0.0:50051
--data-dir=/data/raft
--bootstrap=true
ports:
- "50051:50051"
volumes:
- node1_data:/data/raft
networks:
flux-net:
ipv4_address: 172.20.0.11
node-2:
build: .
container_name: flux-node-2
command: >
--id=node-2
--raft-addr=node-2:7000
--grpc-addr=0.0.0.0:50051
--data-dir=/data/raft
--bootstrap=false
ports:
- "50052:50051"
volumes:
- node2_data:/data/raft
networks:
flux-net:
ipv4_address: 172.20.0.12
node-3:
build: .
container_name: flux-node-3
command: >
--id=node-3
--raft-addr=node-3:7000
--grpc-addr=0.0.0.0:50051
--data-dir=/data/raft
--bootstrap=false
ports:
- "50053:50051"
volumes:
- node3_data:/data/raft
networks:
flux-net:
ipv4_address: 172.20.0.13
networks:
flux-net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
volumes:
node1_data:
node2_data:
node3_data: