-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
271 lines (245 loc) · 6.25 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
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
---
version: "3.6"
x-chain-adapter-def: &chain-adapter-def
image: terra-adapter:0.0.1
restart: on-failure
networks:
- terra
x-price-adapter-def: &price-adapter-def
restart: on-failure
environment:
- "CACHE_ENABLED=true"
- "EXPERIMENTAL_RATE_LIMIT_ENABLED=true"
- "RATE_LIMIT_CAPACITY=60"
networks:
- terra
x-chainlink-node-def: &cl-node-def
image: public.ecr.aws/chainlink/chainlink:develop.e35f15f36bb9a07542fc67251aea17366358df64
restart: on-failure
depends_on:
- postgres
secrets:
- node_password
- apicredentials
env_file:
- ./chainlink.env
volumes:
- .:/host
networks:
- terra
entrypoint:
- chainlink
- node
- start
- "-d"
- "-p"
- /run/secrets/node_password
- "-a"
- /run/secrets/apicredentials
x-ei-def: &ei-def
image: terrademo/terra-ei
command: '{\"name\":\"terra\",\"type\":\"terra\",\"url\":\"${WS_URL}\"}'
depends_on:
- postgres
networks:
- terra
environment:
- EI_FM_ADAPTER_TIMEOUT=5s
- CL_TIMEOUT=20s
services:
postgres-cl:
image: postgres:13
restart: on-failure
environment:
- POSTGRES_MULTIPLE_DATABASES=chainlink_1,chainlink_2,chainlink_3,ei_1,ei_2,ei_3
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./docker-init-scripts/postgres:/docker-entrypoint-initdb.d
- pg-cl:/var/lib/postgresql/data
networks:
- terra
postgres:
image: postgres:13
restart: on-failure
environment:
- POSTGRES_MULTIPLE_DATABASES=fcd
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./LocalTerra/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./docker-init-scripts/postgres:/docker-entrypoint-initdb.d
- pg:/var/lib/postgresql/data
networks:
- terra
terrad:
image: terramoney/localterra-core:bombay
pull_policy: always
volumes:
- ./LocalTerra/config:/root/.terra/config
networks:
- terra
ports:
- "26657:26657"
- "1317:1317"
- "9090:9090"
- "9091:9091"
command: terrad start
fcd-collector:
image: terramoney/fcd:1.0.0-beta.2
pull_policy: always
depends_on:
- terrad
- postgres
volumes:
- ./LocalTerra/logs:/app/logs
networks:
- terra
env_file: ./fcd.env
command: collector
oracle:
image: terramoney/pseudo-feeder:bombay
pull_policy: always
depends_on:
- terrad
networks:
- terra
environment:
TESTNET_LCD_URL: http://terrad:1317
command: start
fcd-api:
image: terramoney/fcd:1.0.0-beta.2
pull_policy: always
depends_on:
- terrad
- postgres
volumes:
- ./LocalTerra/logs:/app/logs
networks:
- terra
ports:
- "3060:3060"
env_file: ./fcd.env
command: start
chainlink-node-1:
<<: *cl-node-def
ports:
- "6691:6688"
environment:
- DATABASE_URL=postgresql://postgres@postgres-cl:5432/chainlink_1?sslmode=disable
chainlink-node-2:
<<: *cl-node-def
ports:
- "6692:6688"
environment:
- DATABASE_URL=postgresql://postgres@postgres-cl:5432/chainlink_2?sslmode=disable
chainlink-node-3:
<<: *cl-node-def
ports:
- "6693:6688"
environment:
- DATABASE_URL=postgresql://postgres@postgres-cl:5432/chainlink_3?sslmode=disable
external-initiator-1:
<<: *ei-def
environment:
- EI_DATABASEURL=postgresql://postgres@postgres-cl:5432/ei_1?sslmode=disable
- EI_CHAINLINKURL=http://chainlink-node-1:6688/
- TERRA_URL=${NODE_URL}
env_file:
- ./external_initiator1.env
external-initiator-2:
<<: *ei-def
environment:
- EI_DATABASEURL=postgresql://postgres@postgres-cl:5432/ei_2?sslmode=disable
- EI_CHAINLINKURL=http://chainlink-node-2:6688/
- TERRA_URL=${NODE_URL}
env_file:
- ./external_initiator2.env
external-initiator-3:
<<: *ei-def
environment:
- EI_DATABASEURL=postgresql://postgres@postgres-cl:5432/ei_3?sslmode=disable
- EI_CHAINLINKURL=http://chainlink-node-3:6688/
- TERRA_URL=${NODE_URL}
env_file:
- ./external_initiator3.env
crypto-price-adapter-1:
<<: *price-adapter-def
image: public.ecr.aws/chainlink-staging/adapters/coingecko-adapter:develop-latest
ports:
- "8061:8080"
environment:
- "API_KEY=${COINGECKO_API_KEY}"
crypto-price-adapter-2:
<<: *price-adapter-def
image: public.ecr.aws/chainlink-staging/adapters/cryptoapis-adapter:develop-latest
ports:
- "8062:8080"
environment:
- "API_KEY=${CRYPTOAPIS_API_KEY}"
crypto-price-adapter-3:
<<: *price-adapter-def
image: public.ecr.aws/chainlink-staging/adapters/cryptocompare-adapter:develop-latest
ports:
- "8063:8080"
environment:
- "API_KEY=${CRYPTOCOMPARE_API_KEY}"
stock-price-adapter-1:
<<: *price-adapter-def
image: public.ecr.aws/chainlink-staging/adapters/tradermade-adapter:develop-latest
ports:
- "8071:8080"
environment:
- "API_KEY=${TRADERMADE_API_KEY}"
stock-price-adapter-2:
<<: *price-adapter-def
image: public.ecr.aws/chainlink-staging/adapters/intrinio-adapter:develop-latest
ports:
- "8072:8080"
environment:
- "API_KEY=${INTRINIO_API_KEY}"
stock-price-adapter-3:
<<: *price-adapter-def
image: public.ecr.aws/chainlink-staging/adapters/iex-cloud-adapter:develop-latest
ports:
- "8073:8080"
environment:
- "API_KEY=${IEX_CLOUD_API_KEY}"
chain-adapter-1:
<<: *chain-adapter-def
ports:
- "8086:8080"
environment:
- FCD_URL=${NODE_URL}
- CHAIN_ID=${CHAIN_ID}
- MNEMONIC=${ORACLE1}
- GAS_PRICES=${DEFAULT_GAS_PRICE}
chain-adapter-2:
<<: *chain-adapter-def
ports:
- "8087:8080"
environment:
- FCD_URL=${NODE_URL}
- CHAIN_ID=${CHAIN_ID}
- MNEMONIC=${ORACLE2}
- GAS_PRICES=${DEFAULT_GAS_PRICE}
chain-adapter-3:
<<: *chain-adapter-def
ports:
- "8088:8080"
environment:
- FCD_URL=${NODE_URL}
- CHAIN_ID=${CHAIN_ID}
- MNEMONIC=${ORACLE3}
- GAS_PRICES=${DEFAULT_GAS_PRICE}
volumes:
pg: null
pg-cl: null
cl: null
chain: null
secrets:
node_password:
file: ./secrets/password.txt
apicredentials:
file: ./secrets/apicredentials
networks:
terra:
driver: bridge