forked from tokend/developer-edition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
305 lines (294 loc) · 7.18 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
version: '3.3'
services:
traefik:
image: traefik:v2.0
ports:
- "80:80"
- "8081:8080"
volumes:
- ./configs/traefik.yaml:/traefik.yaml
cop:
image: tokend/traefik-cop:1.0.0
restart: unless-stopped
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/cop.yaml:/config.yaml
entrypoint: sh -c "traefik-cop run"
upstream:
image: nginx
restart: unless-stopped
volumes:
- ./configs/nginx.conf:/etc/nginx/nginx.conf
ports:
- "8000:80"
adks:
image: tokend/adks:1.0.2
restart: unless-stopped
depends_on:
- horizon
- adks_db
ports:
- 8006:80
volumes:
- ./configs/adks.toml:/config.toml
adks_db:
image: tokend/postgres-ubuntu:9.6
restart: unless-stopped
environment:
- POSTGRES_USER=adks
- POSTGRES_PASSWORD=adks
- POSTGRES_DB=adks
- PGDATA=/pgdata
volumes:
- adks-data:/pgdata
redis:
image: redis:5.0-alpine
restart: unless-stopped
volumes:
- redis-data:/data
command:
- redis-server
- --appendonly
- "yes"
core:
image: tokend/core:3.7.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"
horizon:
image: tokend/horizon:3.10.0
depends_on:
- core
restart: unless-stopped
environment:
- POSTGRES_USER=horizon
- POSTGRES_PASSWORD=horizon
- POSTGRES_DB=horizon
- PGDATA=/data/pgdata
volumes:
- ./configs/horizon.yaml:/config.yaml
- horizon-data:/data
api:
image: tokend/identity:4.7.0
restart: unless-stopped
depends_on:
- horizon
- api_db
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/api.yml:/config.yaml
command: run
api_db:
image: tokend/postgres-ubuntu:9.6
restart: unless-stopped
environment:
- POSTGRES_USER=api
- POSTGRES_PASSWORD=api
- POSTGRES_DB=api
- PGDATA=/pgdata
volumes:
- api-data:/pgdata
initscripts:
image: tokend/terraform-provider-tokend:1.3.4
depends_on:
- horizon
- storage
restart: on-failure
volumes:
- ./terraform:/opt/config
entrypoint: ""
command: /opt/config/apply.sh
web_client:
image: tokend/web-client:1.13.0-rc.2
restart: unless-stopped
volumes:
- ./configs/client.js:/usr/share/nginx/html/static/env.js
ports:
- 8060:80
admin_client:
image: tokend/admin-client:1.14.0-rc.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
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.0
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.0.1
depends_on:
- 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
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
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
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
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
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
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
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:
- 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:
- horizon
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/stellar-withdraw.yaml:/config.yaml
## Ethereum
erc20-deposit:
image: tokend/erc20-deposit-svc:1.0.12
restart: unless-stopped
depends_on:
- 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.12
restart: on-failure
depends_on:
- 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.12
restart: unless-stopped
depends_on:
- 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:
- horizon
environment:
- KV_VIPER_FILE=/config.yaml
volumes:
- ./configs/erc20-withdraw.yaml:/config.yaml
entrypoint: "erc20-withdraw-svc"
command: ["run", "withdraw"]
volumes:
adks-data:
api-data:
core-data:
horizon-data:
storage-data:
redis-data: