-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
370 lines (355 loc) · 8.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
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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
version: '3.3'
services:
upstream:
image: nginx
restart: unless-stopped
volumes:
- ./configs/nginx.conf:/etc/nginx/nginx.conf
ports:
- "8000:80"
initscripts:
image: tokend/terraform-provider-tokend:2.0.0
depends_on:
- storage
- horizon
restart: on-failure
volumes:
- ./terraform:/opt/config
environment:
WAIT_HOSTS: storage:9000, horizon:80
entrypoint: ""
command: sh -c "/opt/config/wait && /opt/config/apply.sh"
traefik:
image: traefik:v2.0
depends_on:
- upstream
ports:
- "80:80"
- "8081:8080"
volumes:
- ./configs/traefik.yaml:/traefik.yaml
cop:
image: tokend/traefik-cop:1.1.0
depends_on:
- traefik
restart: unless-stopped
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/cop.yaml:/config.yaml
entrypoint: sh -c "traefik-cop run"
adks:
image: tokend/adks:1.0.3
restart: unless-stopped
depends_on:
- horizon
- adks_db
- initscripts
ports:
- 8006:80
volumes:
- ./configs/adks.toml:/config.toml
core:
image: tokend/core:3.8.0
depends_on:
- traefik
restart: unless-stopped
environment:
- POSTGRES_USER=core
- POSTGRES_PASSWORD=core
- POSTGRES_DB=core
- PGDATA=/data/pgdata
- ENSUREDB=1
- CONFIG=/core-config.ini
volumes:
- ./configs/core.ini:/core-config.ini
- core-data:/data
labels:
- "autoheal=true"
entrypoint:
- "entrypoint.sh"
horizon:
image: tokend/horizon:3.12.5
depends_on:
- core
- horizon-db
- traefik
restart: unless-stopped
volumes:
- ./configs/horizon.yaml:/config.yaml
entrypoint:
- "horizon-entrypoint.sh"
horizon-db:
image: tokend/postgres-ubuntu:9.6
restart: unless-stopped
environment:
- POSTGRES_USER=horizon
- POSTGRES_PASSWORD=horizon
- POSTGRES_DB=horizon
- PGDATA=/data/pgdata
volumes:
- horizon-data:/data
api:
image: tokend/identity:4.8.4
restart: unless-stopped
depends_on:
- horizon
- api_db
- initscripts
environment:
- KV_VIPER_FILE=/config.yaml
- MASTER_SEED=SAMJKTZVW5UOHCDK5INYJNORF2HRKYI72M5XSZCBYAHQHR34FFR4Z6G4
volumes:
- ./configs/api.yml:/config.yaml
entrypoint: ["api"]
command:
- run
web_client:
image: tokend/web-client:1.13.0-rc.3
restart: unless-stopped
volumes:
- ./configs/client.js:/usr/share/nginx/html/static/env.js
ports:
- 8060:80
admin_client:
image: tokend/admin-client:1.15.0
restart: unless-stopped
volumes:
- ./configs/client.js:/usr/share/nginx/html/static/env.js
ports:
- 8070:80
storage:
image: minio/minio:RELEASE.2019-01-31T00-31-19Z
depends_on:
- upstream
restart: unless-stopped
entrypoint: "sh"
command: -c "mkdir -p /data/tfstate && minio server /data"
environment:
- MINIO_ACCESS_KEY=miniominio
- MINIO_SECRET_KEY=sekritsekrit
- MINIO_BROWSER=off
volumes:
- storage-data:/data
##
## Auxiliary modules
##
charts:
image: tokend/charts:0.5.1
depends_on:
- api
- horizon
restart: unless-stopped
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/charts.yaml:/config.yaml
ports:
- 8080:8080
command: run
salecloser:
image: tokend/sale-closer-svc:1.1.0
depends_on:
- api
- horizon
restart: unless-stopped
volumes:
- ./configs/salecloser.yaml:/config.yaml
environment:
- KV_VIPER_FILE=/config.yaml
command: "run"
poll_closer:
image: tokend/poll-closer:0.1.1
depends_on:
- api
- horizon
restart: unless-stopped
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/poll-closer.yaml:/config.yaml
command: run closer
## 3rd party
autoheal:
image: willfarrell/autoheal
depends_on:
- api
- horizon
restart: unless-stopped
environment:
- AUTOHEAL_START_PERIOD=60
- AUTOHEAL_DEFAULT_STOP_TIMEOUT=30
volumes:
- /var/run/docker.sock:/var/run/docker.sock
##
## Integration services
##
## Coinpayments
coinpayments-deposit:
image: tokend/coinpayments:0.5.0
depends_on:
- api
- horizon
restart: unless-stopped
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/coinpayments-deposit.yaml:/config.yaml
command: deposit
coinpayments-deposit-verify:
image: tokend/coinpayments:0.5.0
depends_on:
- api
- horizon
restart: unless-stopped
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/coinpayments-deposit-verify.yaml:/config.yaml
command: deposit-verify
coinpayments-withdraw:
image: tokend/coinpayments:0.5.0
depends_on:
- api
- horizon
restart: unless-stopped
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/coinpayments-withdraw.yaml:/config.yaml
command: withdraw
coinpayments-atomic-swap-checker:
image: tokend/coinpayments:0.5.0
depends_on:
- api
- horizon
restart: unless-stopped
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/coinpayments-atomic-swap-checker.yaml:/config.yaml
command: atomic-swap-checker
coinpayments-atomic-swap-matcher:
image: tokend/coinpayments:0.5.0
depends_on:
- api
- horizon
restart: unless-stopped
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/coinpayments-atomic-swap-matcher.yaml:/config.yaml
command: atomic-swap-matcher
## Stellar
stellar-deposit:
image: tokend/stellar-deposit-svc:1.0.5
restart: unless-stopped
depends_on:
- api
- horizon
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/stellar-deposit.yaml:/config.yaml
stellar-withdraw:
image: tokend/stellar-withdraw-svc:1.0.1
restart: unless-stopped
depends_on:
- api
- horizon
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/stellar-withdraw.yaml:/config.yaml
## Ethereum
erc20-deposit:
image: tokend/erc20-deposit-svc:1.0.13
restart: unless-stopped
depends_on:
- api
- horizon
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/erc20-deposit.yaml:/config.yaml
entrypoint: "erc20-deposit-svc"
command: ["run", "deposit"]
erc20-deployer:
image: tokend/erc20-deposit-svc:1.0.13
restart: on-failure
depends_on:
- api
- horizon
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/erc20-deposit.yaml:/config.yaml
entrypoint: "erc20-deposit-svc"
command: ["run", "deployer"]
erc20-funnel:
image: tokend/erc20-deposit-svc:1.0.13
restart: unless-stopped
depends_on:
- api
- horizon
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/erc20-deposit.yaml:/config.yaml
entrypoint: "erc20-deposit-svc"
command: ["run", "funnel"]
erc20-withdraw:
image: tokend/erc20-withdraw-svc:1.0.9
restart: unless-stopped
depends_on:
- api
- horizon
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/erc20-withdraw.yaml:/config.yaml
entrypoint: "erc20-withdraw-svc"
command: ["run", "withdraw"]
#Data Base`s
adks_db:
image: tokend/postgres-ubuntu:9.6
depends_on:
- upstream
restart: unless-stopped
environment:
- POSTGRES_USER=adks
- POSTGRES_PASSWORD=adks
- POSTGRES_DB=adks
- PGDATA=/pgdata
volumes:
- adks-data:/pgdata
api_db:
image: tokend/postgres-ubuntu:9.6
depends_on:
- upstream
restart: unless-stopped
environment:
- POSTGRES_USER=api
- POSTGRES_PASSWORD=api
- POSTGRES_DB=api
- PGDATA=/pgdata
volumes:
- api-data:/pgdata
redis:
image: redis:5.0-alpine
depends_on:
- upstream
restart: unless-stopped
volumes:
- redis-data:/data
command:
- redis-server
- --appendonly
- "yes"
volumes:
adks-data:
api-data:
core-data:
horizon-data:
storage-data:
redis-data: