forked from bandprotocol/bandchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
135 lines (123 loc) · 3.91 KB
/
docker-compose.yaml
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: "3.5"
services:
init1:
image: odinprotocol/core:latest
container_name: init1
command: ./init-scripts/init.sh validator1
volumes:
- ./init-scripts:/init-scripts
- ./init.sh:/init.sh
- vol1:/root/.bandd
- ./genesis.json:/genesis.json
init2:
image: odinprotocol/core:latest
container_name: init2
depends_on:
- init1
command: ./init-scripts/init.sh validator2
volumes:
- ./init-scripts:/init-scripts
- ./init.sh:/init.sh
- vol2:/root/.bandd
- ./genesis.json:/genesis.json
init3:
image: odinprotocol/core:latest
container_name: init3
depends_on:
- init2
command: ./init-scripts/init.sh validator3
volumes:
- ./init-scripts:/init-scripts
- vol3:/root/.bandd
- ./genesis.json:/genesis.json
init4:
image: odinprotocol/core:latest
container_name: init4
depends_on:
- init3
command: ./init.sh validator4 && ./run.sh
volumes:
- ./run.sh:/run.sh
- ./init-scripts:/init-scripts
- vol4:/root/.bandd
- ./genesis.json:/genesis.json
validator1:
image: odinprotocol/core:latest
container_name: validator1
depends_on:
- init4
networks:
default:
ipv4_address: 172.18.0.11
command: bandd start --rpc.laddr tcp://0.0.0.0:26657 --p2p.persistent_peers 11392b605378063b1c505c0ab123f04bd710d7d7@172.18.0.11:26656,0851086afcd835d5a6fb0ffbf96fcdf74fec742e@172.18.0.12:26656,63808bd64f2ec19acb2a494c8ce8467c595f6fba@172.18.0.14:26656,7b58b086dd915a79836eb8bfa956aeb9488d13b0@172.18.0.13:26656
volumes:
- vol1:/root/.bandd
validator2:
container_name: validator2
image: odinprotocol/core:latest
depends_on:
- validator1
networks:
default:
ipv4_address: 172.18.0.12
command: bandd start --rpc.laddr tcp://0.0.0.0:26657 --p2p.persistent_peers 11392b605378063b1c505c0ab123f04bd710d7d7@172.18.0.11:26656,0851086afcd835d5a6fb0ffbf96fcdf74fec742e@172.18.0.12:26656,63808bd64f2ec19acb2a494c8ce8467c595f6fba@172.18.0.14:26656,7b58b086dd915a79836eb8bfa956aeb9488d13b0@172.18.0.13:26656
volumes:
- vol2:/root/.bandd
validator3:
container_name: validator3
image: odinprotocol/core:latest
depends_on:
- validator2
networks:
default:
ipv4_address: 172.18.0.13
command: bandd start --rpc.laddr tcp://0.0.0.0:26657 --p2p.persistent_peers 11392b605378063b1c505c0ab123f04bd710d7d7@172.18.0.11:26656,0851086afcd835d5a6fb0ffbf96fcdf74fec742e@172.18.0.12:26656,63808bd64f2ec19acb2a494c8ce8467c595f6fba@172.18.0.14:26656,7b58b086dd915a79836eb8bfa956aeb9488d13b0@172.18.0.13:26656
volumes:
- vol3:/root/.bandd
validator4:
container_name: validator4
image: odinprotocol/core:latest
depends_on:
- validator3
networks:
default:
ipv4_address: 172.18.0.14
command: bandd start --rpc.laddr tcp://0.0.0.0:26657 --p2p.persistent_peers 11392b605378063b1c505c0ab123f04bd710d7d7@172.18.0.11:26656,0851086afcd835d5a6fb0ffbf96fcdf74fec742e@172.18.0.12:26656,63808bd64f2ec19acb2a494c8ce8467c595f6fba@172.18.0.14:26656,7b58b086dd915a79836eb8bfa956aeb9488d13b0@172.18.0.13:26656
ports:
- 26657:26657
- 26655:26656
volumes:
- vol4:/root/.bandd
rest-server:
image: odinprotocol/core:latest
networks:
default:
ipv4_address: 172.18.0.20
restart: always
depends_on:
- validator4
ports:
- 1317:1317
command: bandcli rest-server --laddr tcp://0.0.0.0:1317 --node tcp://172.18.0.14:26657 --chain-id odin --trust-node
geo-provider:
image: odinprotocol/geo-provider:latest
networks:
default:
ipv4_address: 172.18.0.21
restart: always
volumes:
- ./data:/go/app/data
ports:
- 5000:80
command: geo-provider
volumes:
vol1:
vol2:
vol3:
vol4:
networks:
default:
ipam:
driver: default
config:
- subnet: "172.18.0.0/16"