forked from primihub/primihub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (89 loc) · 2.26 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
90
91
92
93
94
version: '3'
services:
node0:
image: ${REGISTRY:-docker.io}/primihub/primihub-node:${TAG:-latest}
restart: "always"
container_name: primihub-node0
ports:
- "8050:50050"
- "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:
primihub_net:
ipv4_address: 172.28.1.10
depends_on:
- redis
node1:
image: ${REGISTRY:-docker.io}/primihub/primihub-node:${TAG:-latest}
restart: "always"
container_name: primihub-node1
ports:
- "8051:50051"
- "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:
primihub_net:
ipv4_address: 172.28.1.11
depends_on:
- redis
node2:
image: ${REGISTRY:-docker.io}/primihub/primihub-node:${TAG:-latest}
restart: "always"
container_name: primihub-node2
ports:
- "8052:50052"
- "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:
primihub_net:
ipv4_address: 172.28.1.12
depends_on:
- redis
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:
primihub_net:
ipv4_address: 172.28.1.13
redis:
image: ${REGISTRY:-docker.io}/primihub/redis:latest
container_name: redis
restart: "always"
ports:
- "6379:6379"
volumes:
- ./config/redis.conf:/etc/redis/redis.conf
- ./data:/data
command: redis-server /etc/redis/redis.conf
networks:
primihub_net:
ipv4_address: 172.28.1.14
networks:
primihub_net:
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16