forked from primihub/primihub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (82 loc) · 2.09 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
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
version: '3'
services:
node0:
image: ${REGISTRY:-docker.io}/primihub/primihub-node:${TAG:-latest}
restart: "always"
container_name: node0_primihub
ports:
- "8050:50050"
- "10120:12120"
- "10121:12121"
- "6666:6666"
volumes:
- ./config:/app/config
- ./data:/data
entrypoint:
- "/bin/bash"
- "-c"
- "./primihub-node --service_port=50050 --node_id=node0 --config=/app/config/primihub_node0.yaml"
networks:
testing_net:
ipv4_address: 172.28.1.10
depends_on:
- simple_bootstrap_node
node1:
image: ${REGISTRY:-docker.io}/primihub/primihub-node:${TAG:-latest}
restart: "always"
container_name: node1_primihub
ports:
- "8051:50051"
- "11120:12120"
- "11121:12121"
- "6667:6667"
volumes:
- ./config:/app/config
- ./data:/data
entrypoint:
- "/bin/bash"
- "-c"
- "./primihub-node --service_port=50051 --node_id=node1 --config=/app/config/primihub_node1.yaml"
networks:
testing_net:
ipv4_address: 172.28.1.11
depends_on:
- simple_bootstrap_node
node2:
image: ${REGISTRY:-docker.io}/primihub/primihub-node:${TAG:-latest}
restart: "always"
container_name: node2_primihub
ports:
- "8052:50052"
- "12120:12120"
- "12121:12121"
- "6668:6668"
volumes:
- ./config:/app/config
- ./data:/data
entrypoint:
- "/bin/bash"
- "-c"
- "./primihub-node --service_port=50052 --node_id=node2 --config=/app/config/primihub_node2.yaml"
networks:
testing_net:
ipv4_address: 172.28.1.12
depends_on:
- simple_bootstrap_node
simple_bootstrap_node:
image: ${REGISTRY:-docker.io}/primihub/simple-bootstrap-node:${BOOTTAG:-1.0}
container_name: simple_bootstrap_node
restart: "always"
ports:
- "4001:4001"
entrypoint:
- "/app/simple-bootstrap-node"
networks:
testing_net:
ipv4_address: 172.28.1.13
networks:
testing_net:
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16