-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
248 lines (233 loc) · 5.71 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
version: "3"
services:
gateway:
build:
context: .
dockerfile: ./gateway/src/Dockerfile
command: npm run dev
environment:
NODE_ENV: development
EXPRESS_PORT: 80
env_file:
- .env
volumes:
- /app/node_modules
- ./gateway/src:/app
- ./share:/app/share
- ./share/models:/app/share/models
- ./share/sequelize/migrations/client:/app/share/sequelize/migrations
ports:
- "8100:80"
links:
- postgres
- redis
binance-smart-chain-rpc:
build:
context: .
dockerfile: ./ethereum-rpc/src/Dockerfile
command: npm run dev
environment:
NODE_ENV: development
EXPRESS_PORT: 80
POSTGRES_DATABASE: BinanceSmartChainTestnet
BINANCE_SMART_CHAIN_HTTPS_ADDR: ${BINANCE_SMART_CHAIN_TESTNET_HTTPS_ADDR}
CHAIN_NETWORK_HTTPS_ADDR: ${BINANCE_SMART_CHAIN_TESTNET_HTTPS_ADDR}
ports:
- "${BINANCE_SMART_CHAIN_RPC_PORT:-8105}:80"
env_file:
- .env
volumes:
- /app/node_modules
- ./ethereum-rpc/src:/app
- ./share:/app/share
- ./share/models:/app/constructors/sequelize/models
- ./share/migrations/ethereum:/app/constructors/sequelize/migrations
links:
- postgres
- redis
bitcoin-rpc:
build:
context: .
dockerfile: ./bitcoin-rpc/src/Dockerfile
command: npm run dev
environment:
NODE_ENV: development
EXPRESS_PORT: 80
POSTGRES_DATABASE: BitcoinTestnet
ports:
- "${BITCOIN_RPC_PORT:-8101}:80"
env_file:
- .env
volumes:
- /app/node_modules
- ./bitcoin-rpc/src:/app
- ./share:/app/share
- ./share/models:/app/constructors/sequelize/models
- ./share/migrations/bitcoin:/app/constructors/sequelize/migrations
links:
- bitcoin-core
- postgres
- redis
ethereum-rpc:
build:
context: .
dockerfile: ./ethereum-rpc/src/Dockerfile
command: npm run dev
environment:
NODE_ENV: development
EXPRESS_PORT: 80
POSTGRES_DATABASE: EthereumRinkeby
CHAIN_NETWORK_HTTPS_ADDR: ${ETHEREUM_HTTPS_ADDR}
ports:
- "${ETHEREUM_RPC_PORT:-8102}:80"
env_file:
- .env
volumes:
- /app/node_modules
- ./ethereum-rpc/src:/app
- ./share:/app/share
- ./share/models:/app/constructors/sequelize/models
- ./share/migrations/ethereum:/app/constructors/sequelize/migrations
links:
- postgres
- redis
bitcoin-listener:
build:
context: .
dockerfile: ./bitcoin-listener/src/Dockerfile
command: npm run dev
environment:
NODE_ENV: development
EXPRESS_PORT: 80
POSTGRES_DATABASE: BitcoinTestnet
ports:
- "${BITCOIN_LISTENER_PORT:-8103}:80"
env_file:
- .env
volumes:
- /app/node_modules
- ./bitcoin-listener/src:/app
- ./share:/app/share
- ./share/models:/app/constructors/sequelize/models
- ./share/migrations/bitcoin:/app/constructors/sequelize/migrations
links:
- bitcoin-core
- postgres
- redis
ethereum-listener:
build:
context: .
dockerfile: ./ethereum-listener/src/Dockerfile
command: npm run dev
environment:
NODE_ENV: development
EXPRESS_PORT: 80
POSTGRES_DATABASE: EthereumRinkeby
DEBUG: ethereum-listener:*
env_file:
- .env
ports:
- "${ETHEREUM_LISTENER_PORT:-8104}:80"
volumes:
- /app/node_modules
- ./ethereum-listener/src:/app
- ./share:/app/share
links:
- postgres
- redis
bitcoin-core:
image: ruimarinho/bitcoin-core:0.20.1
ports:
- "8332:8332"
- "9332:9332"
- "8333:8333"
- "9333:9333"
- "19332:19332"
- "19333:19333"
- "29332:29332"
env_file:
- .env
command:
- -regtest=1
- -fallbackfee=0.000001
- -listen=1
- -txindex=1
- -server=1
- -printtoconsole
- -port=19332
- -rpcport=19333
- -rpcallowip=127.0.0.1
- -rpcallowip=172.17.0.0
- -rpcallowip=172.17.0.0/8
- -rpcallowip=172.17.0.0/16
- -rpcallowip=192.168.0.0/16
- -rpcbind=0.0.0.0
- -rpcuser=bitcoin_rpc_user
- -rpcpassword=bitcoin_rpc_pass
- -zmqpubrawtx=tcp://*:29332
- -zmqpubrawblock=tcp://*:29332
- -zmqpubhashblock=tcp://*:29332
- -zmqpubhashtx=tcp://*:29332
- -keypool=100
- -deprecatedrpc=generate
postgres:
image: postgres:13
restart: always
env_file:
- .env
ports:
- "5432:5432"
# volumes:
# - "./.data/postgres:/var/lib/postgresql/data"
redis:
image: "redis:alpine"
# command: redis-server --requirepass sOmE_sEcUrE_pAsS
command: redis-server
ports:
- "6379:6379"
# volumes:
# - $PWD/redis-data:/var/lib/redis
# - $PWD/redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
static:
build:
context: ./static
ports:
- "8080:8080"
environment:
FOLDER: /web
volumes:
- ./static/src:/web
e2e:
# the Docker image to use from https://github.com/cypress-io/cypress-docker-images
image: "cypress/included:3.2.0"
depends_on:
- gateway
env_file:
- .env
# share the current folder as volume to avoid copying
working_dir: /e2e
volumes:
- ./e2e:/e2e
# adminer:
# image: adminer
# restart: always
# ports:
# - 8080:8080
# env_file:
# - .env
developers:
build:
context: .
dockerfile: ./developers/Dockerfile
command: npm start
environment:
NODE_ENV: development
env_file:
- .env
volumes:
- /app/node_modules
- ./developers:/app
ports:
- "8099:3000"