-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
176 lines (161 loc) · 5.15 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
version: "3.5"
services:
init1:
image: odinprotocol/core:master
container_name: init1
command: /init-scripts/init.sh validator1
volumes:
- ./init-scripts:/init-scripts
- vol1:/root/.odin
- ./genesis.json:/genesis.json
init2:
image: odinprotocol/core:master
container_name: init2
depends_on:
- init1
command: /init-scripts/init.sh validator2
volumes:
- ./init-scripts:/init-scripts
- vol2:/root/.odin
- ./genesis.json:/genesis.json
init3:
image: odinprotocol/core:master
container_name: init3
depends_on:
- init2
command: /init-scripts/init.sh validator3
volumes:
- ./init-scripts:/init-scripts
- vol3:/root/.odin
- ./genesis.json:/genesis.json
init4:
image: odinprotocol/core:master
container_name: init4
depends_on:
- init3
command: /init-scripts/init.sh validator4
volumes:
- ./init-scripts:/init-scripts
- vol4:/root/.odin
- ./genesis.json:/genesis.json
validator1:
image: odinprotocol/core:master
container_name: validator1
depends_on:
- init4
networks:
default:
ipv4_address: 172.18.0.11
command: odind start --rpc.laddr tcp://0.0.0.0:26657 --p2p.persistent_peers [email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656
volumes:
- vol1:/root/.odin
validator2:
container_name: validator2
image: odinprotocol/core:master
depends_on:
- validator1
networks:
default:
ipv4_address: 172.18.0.12
command: odind start --rpc.laddr tcp://0.0.0.0:26657 --p2p.persistent_peers [email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656
volumes:
- vol2:/root/.odin
validator3:
container_name: validator3
image: odinprotocol/core:master
depends_on:
- validator2
networks:
default:
ipv4_address: 172.18.0.13
command: odind start --rpc.laddr tcp://0.0.0.0:26657 --p2p.persistent_peers [email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656
volumes:
- vol3:/root/.odin
validator4:
container_name: validator4
image: odinprotocol/core:master
depends_on:
- validator3
networks:
default:
ipv4_address: 172.18.0.14
command: odind start --rpc.laddr tcp://0.0.0.0:26657 --p2p.persistent_peers [email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656
ports:
- 26658:26658
- 26657:26657
- 26656:26656
- 9090:9090
- 1317:1317
volumes:
- vol4:/root/.odin
faucet:
container_name: faucet
image: odinprotocol/core:master
depends_on:
- validator4
networks:
default:
ipv4_address: 172.18.0.15
command: sh -c "/utils/wait-for-account.sh && /init-scripts/faucet.sh supplier tcp://172.18.0.14:26657 && faucet run --node tcp://172.18.0.14:26657"
ports:
- 5005:5005
volumes:
- ./utils:/utils
- ./init-scripts:/init-scripts
executor:
container_name: executor
image: odinprotocol/core:master
depends_on:
- faucet
networks:
default:
ipv4_address: 172.18.0.16
command: sh -c "/utils/wait-for-service.sh && /init-scripts/entrypoint.sh supplier tcp://172.18.0.14:26657 && yoda run --log-level debug --node tcp://172.18.0.14:26657"
volumes:
- ./utils:/utils
- ./init-scripts:/init-scripts
- ./oracle-scripts:/oracle-scripts
- ./data-source-scripts:/data-source-scripts
odin-deposit-ether:
image: odinprotocol/odin-deposit-ether:master
environment:
- CONFIG=/config.yaml
volumes:
- ./configs/odin-deposit-ether-config.yaml:/config.yaml
restart: always
command: odin-deposit-ether-svc run deposit
odin-telemetry:
image: odinprotocol/odin-telemetry:master
environment:
- KV_VIPER_FILE=/config.yaml
depends_on:
- odin-telemetry_db
ports:
- 8100:8100
volumes:
- ./configs/odin-telemetry-config.yaml:/config.yaml
restart: always
entrypoint: sh -c "odin-telemetry migrate up && odin-telemetry run service"
odin-telemetry_db:
image: tokend/postgres-ubuntu:9.6
restart: unless-stopped
environment:
- POSTGRES_USER=telemetry
- POSTGRES_PASSWORD=telemetry
- POSTGRES_DB=telemetry
- PGDATA=/pgdata
volumes:
- telemetry-data:/pgdata
volumes:
vol1:
vol2:
vol3:
vol4:
database-data:
telemetry-data:
networks:
default:
ipam:
driver: default
config:
- subnet: "172.18.0.0/16"