This repository has been archived by the owner on May 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yaml
119 lines (119 loc) · 3.62 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
version: "3"
volumes:
datavolume: {}
services:
redis:
container_name: hydro-sdk-redis
image: redis:5.0
ports:
- 6379:6379
restart: on-failure:5
ethereum-node:
container_name: hydro-sdk-ethereum-node
image: hydroprotocolio/ethereum-test-node:latest
ports:
- 8545:8545
restart: on-failure:5
db:
image: hydroprotocolio/hydro-sdk-backend:latest
container_name: hydro-sdk-db
volumes:
- datavolume:/data
command: sh -c "cat /db/migrations/0001-init.up.sql /db/seed.sql | sqlite3 /data/sqlite3.db"
web:
image: hydroprotocolio/hydro-sdk-web:latest
container_name: hydro-sdk-web
ports:
- 3000:8043
environment:
- CONFIG_VARS=REACT_APP_API_URL,REACT_APP_WS_URL,REACT_APP_HYDRO_PROXY_ADDRESS,REACT_APP_HYDRO_TOKEN_ADDRESS
- REACT_APP_API_URL=http://localhost:3001
- REACT_APP_WS_URL=ws://localhost:3002
- REACT_APP_HYDRO_PROXY_ADDRESS=0x04f67e8b7c39a25e100847cb167460d715215feb
- REACT_APP_HYDRO_TOKEN_ADDRESS=0x4c4fa7e8ea4cfcfc93deae2c0cff142a1dd3a218
restart: on-failure:5
api:
image: hydroprotocolio/hydro-sdk-backend:latest
container_name: hydro-sdk-api
command: /bin/api
ports:
- 3001:3001
environment:
- HSK_DATABASE_URL=/data/sqlite3.db
- HSK_REDIS_URL=redis://redis:6379/0
- HSK_HYBRID_EXCHANGE_ADDRESS=0x179fd00c328d4ecdb5043c8686d377a24ede9d11
- HSK_BLOCKCHAIN_RPC_URL=http://ethereum-node:8545
- HSK_HYDRO_TOKEN_ADDRESS=0x4c4fa7e8ea4cfcfc93deae2c0cff142a1dd3a218
- HSK_PROXY_ADDRESS=0x04f67e8b7c39a25e100847cb167460d715215feb
- HSK_RELAYER_ADDRESS=0x93388b4efe13b9b18ed480783c05462409851547
- HSK_LOG_LEVEL=DEBUG
volumes:
- datavolume:/data
depends_on:
- db
- redis
- ethereum-node
restart: on-failure:5
ws:
image: hydroprotocolio/hydro-sdk-backend:latest
container_name: hydro-sdk-ws
command: /bin/websocket
ports:
- 3002:3002
environment:
- HSK_API_URL=http://api:3001
- HSK_REDIS_URL=redis://redis:6379/0
- HSK_LOG_LEVEL=DEBUG
volumes:
- datavolume:/data
depends_on:
- redis
- api
restart: on-failure:5
watcher:
image: hydroprotocolio/hydro-sdk-backend:latest
container_name: hydro-sdk-watcher
command: /bin/watcher
environment:
- HSK_DATABASE_URL=/data/sqlite3.db
- HSK_REDIS_URL=redis://redis:6379/0
- HSK_BLOCKCHAIN_RPC_URL=http://ethereum-node:8545
- HSK_LOG_LEVEL=DEBUG
volumes:
- datavolume:/data
depends_on:
- redis
- ethereum-node
- db
engine:
image: hydroprotocolio/hydro-sdk-backend:latest
container_name: hydro-sdk-engine
command: /bin/engine
environment:
- HSK_DATABASE_URL=/data/sqlite3.db
- HSK_REDIS_URL=redis://redis:6379/0
- HSK_HYBRID_EXCHANGE_ADDRESS=0x179fd00c328d4ecdb5043c8686d377a24ede9d11
- HSK_LOG_LEVEL=DEBUG
volumes:
- datavolume:/data
depends_on:
- redis
- db
restart: on-failure:5
launcher:
image: hydroprotocolio/hydro-sdk-backend:latest
container_name: hydro-sdk-launcher
command: /bin/launcher
environment:
- HSK_DATABASE_URL=/data/sqlite3.db
- HSK_BLOCKCHAIN_RPC_URL=http://ethereum-node:8545
- HSK_HYBRID_EXCHANGE_ADDRESS=0x179fd00c328d4ecdb5043c8686d377a24ede9d11
- HSK_RELAYER_ADDRESS=0x93388b4efe13b9b18ed480783c05462409851547
- HSK_RELAYER_PK=95b0a982c0dfc5ab70bf915dcf9f4b790544d25bc5e6cff0f38a59d0bba58651
- HSK_LOG_LEVEL=DEBUG
volumes:
- datavolume:/data
depends_on:
- ethereum-node
- db
restart: on-failure:5