-
Notifications
You must be signed in to change notification settings - Fork 312
/
docker-compose.e2e-compatibility.yml
341 lines (324 loc) · 9.44 KB
/
docker-compose.e2e-compatibility.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
version: '3.0'
services:
morqa:
image: mysteriumnetwork/quality-oracle:latest
command: >
--bind-addr=:8085
--prometheus=http://prometheus:9090
--metrics-addr=:8080
depends_on:
- prometheus
expose:
- 8085
- 8080
prometheus:
image: prom/prometheus:v2.10.0
volumes:
- ./e2e/prometheus:/prometheus
command:
- '--config.file=/prometheus/prometheus-local.yml'
- '--storage.tsdb.path=/data'
expose:
- 9090
ipify:
image: owlab/ipify
expose:
- 3000
broker-real:
image: nats:1.0.4
expose:
- 4222
broker:
image: mysteriumnetwork/nats-proxy:1.0.1
depends_on:
- broker-real
command:
- '-target=broker-real:4222'
- '-allow-unsigned'
expose:
- 4222
db:
image: postgres:13-alpine
container_name: discovery_db
ports:
- 5432:5432
environment:
- POSTGRES_USER=discovery
- POSTGRES_DB=discovery
- POSTGRES_PASSWORD=discovery
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
discovery:
image: mysteriumnetwork/discovery:2.18.3
depends_on:
- db
- http-mock
expose:
- 8080
cap_add:
- NET_ADMIN
sysctls:
- net.ipv4.conf.default.rp_filter=0
- net.ipv4.conf.all.rp_filter=0
- net.ipv4.conf.eth0.rp_filter=0
- net.ipv4.conf.eth1.rp_filter=0
environment:
- PORT=8080
- DB_DSN=postgresql://discovery:discovery@db:5432/discovery
- QUALITY_ORACLE_URL=http://morqa:8085
- BROKER_URL=broker
- GECKO_URL=http://http-mock:1080/gecko
- COINRANKING_URL=http://http-mock:1080/gecko
- COINRANKING_TOKEN=suchtoken
- UNIVERSE_JWT_SECRET=suchsecret
#private blockchain
ganache:
image: trufflesuite/ganache-cli:v6.8.1-beta.0
expose:
- 8545
command: >
--mnemonic "amused glory pen avocado toilet dragon entry kitchen cliff retreat canyon danger"
transactor:
image: mysteriumnetwork/transactor:0.4.5
environment:
PORT: 8888
expose:
- 8888
depends_on:
- ganache
- mongodb
command: >
-settlemntFee 1000
-topUpAmount 7000000000000000000
-stakeDecreaseFee 1
-mystSCAddress 0xaa9c4e723609cb913430143fbc86d3cbe7adca21
-rpcEndpoint http://ganache:8545
-registry 0xbe180c8CA53F280C7BE8669596fF7939d933AA10
-ourIdentity 0x354bd098b4ef8c9e70b7f21be2d455df559705d7
-chImplementation 0x599d43715DF3070f83355D9D90AE62c159E62A75
-balanceCheckInterval 1s
-MongoUser transactor
-MongoPass transactor
-MongoHost mongodb:27017
-MongoReplSet ""
volumes:
- ./e2e/blockchain/keystore:/keystore
hermes:
image: mysteriumnetwork/hermes:v3-dev
environment:
PORT: 8889
expose:
- 8889
depends_on:
- ganache
- redis
- mongodb
command: >
-identityPassphrase ""
-myst 0xaa9c4e723609cb913430143fbc86d3cbe7adca21
-rpcEndpoint http://ganache:8545
-registry 0xbe180c8CA53F280C7BE8669596fF7939d933AA10
-operator 0x354bd098b4ef8c9e70b7f21be2d455df559705d7
-chImplementation 0x599d43715DF3070f83355D9D90AE62c159E62A75
-keystoreDir /keystore
-hermesAddress 0x427c2bad22335710aec5e477f3e3adcd313a9bcb
-bcDataRefreshInterval 1ns
-MongoUser hermes
-MongoPass hermes
-MongoHost "mongodb:27017"
-MongoDatabase hermes
-MongoReplSet ""
-redisAddress "redis:6379"
volumes:
- ./e2e/blockchain/keystore:/keystore
mongodb:
image: 'mongo:4.2.3'
environment:
- MONGO_INITDB_ROOT_PASSWORD=root
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_DATABASE=hermes
- MONGO_NON_ROOT_USERNAME=hermes
- MONGO_NON_ROOT_PASSWORD=hermes
expose:
- 27017
- 27018
- 27019
volumes:
- ./e2e/mongo-init.e2e.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
myst-provider:
image: mysteriumnetwork/myst:0.19.1-alpine
depends_on:
- broker
- discovery
- ipify
- transactor
- hermes
- morqa
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
expose:
- 1194
- 4050
volumes:
- ./e2e/myst-provider/keystore:/var/lib/mysterium-node/keystore
command: >
--discovery.ping=1s
--discovery.fetch=1s
--payments.mystscaddress=0xaa9c4e723609cb913430143fbc86d3cbe7adca21
--ip-detector=http://ipify:3000/?format=json
--location.type=manual
--location.country=e2e-land
--firewall.protected.networks=""
--broker-address=broker
--tequilapi.address=0.0.0.0
--discovery.address=http://discovery:8080/api/v4
--ether.client.rpc=http://ganache:8545
--transactor.registry-address=0xbe180c8CA53F280C7BE8669596fF7939d933AA10
--transactor.channel-implementation=0x599d43715DF3070f83355D9D90AE62c159E62A75
--hermes.hermes-id=0xf2e2c77D2e7207d8341106E6EfA469d1940FD0d8
--transactor.address=http://transactor:8888/api/v1
--keystore.lightweight
--log-level=debug
--quality.address=http://morqa:8085/api/v3
--payments.provider.invoice-frequency=1s
--stun-servers=""
service
--agreed-terms-and-conditions
--identity=0xd1a23227bd5ad77f36ba62badcb78a410a1db6c5
--identity.passphrase=localprovider
--openvpn.port=3000
--active-services=openvpn,noop,wireguard
myst-consumer:
image: mysteriumnetwork/myst:0.19.1-alpine
depends_on:
- broker
- discovery
- ipify
- transactor
- hermes
- myst-provider
- morqa
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
expose:
- 4050
command: >
--discovery.ping=1s
--discovery.fetch=1s
--payments.mystscaddress=0xaa9c4e723609cb913430143fbc86d3cbe7adca21
--transactor.registry-address=0xbe180c8CA53F280C7BE8669596fF7939d933AA10
--hermes.hermes-id=0xf2e2c77D2e7207d8341106E6EfA469d1940FD0d8
--transactor.address=http://transactor:8888/api/v1
--transactor.channel-implementation=0x599d43715DF3070f83355D9D90AE62c159E62A75
--ip-detector=http://ipify:3000/?format=json
--location.type=manual
--log-level=debug
--broker-address=broker
--tequilapi.address=0.0.0.0
--discovery.address=http://discovery:8080/api/v4
--ether.client.rpc=http://ganache:8545
--keystore.lightweight
--firewall.killSwitch.always
--quality.address=http://morqa:8085/api/v3
--stun-servers=""
daemon
myst-provider-local:
build:
context: .
dockerfile: ./bin/docker/alpine-prebuilt/Dockerfile
depends_on:
- broker
- discovery
- ipify
- transactor
- hermes
- morqa
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
expose:
- 1194
- 4050
volumes:
- ./e2e/myst-provider/keystore:/var/lib/mysterium-node/keystore
command: >
--discovery.ping=1s
--discovery.fetch=1s
--payments.mystscaddress=0xaa9c4e723609cb913430143fbc86d3cbe7adca21
--ip-detector=http://ipify:3000/?format=json
--location.type=manual
--location.country=e2e-land
--firewall.protected.networks=""
--broker-address=broker
--discovery.address=http://discovery:8080/api/v4
--ether.client.rpc=http://ganache:8545
--transactor.registry-address=0xbe180c8CA53F280C7BE8669596fF7939d933AA10
--transactor.channel-implementation=0x599d43715DF3070f83355D9D90AE62c159E62A75
--hermes.hermes-id=0xf2e2c77D2e7207d8341106E6EfA469d1940FD0d8
--transactor.address=http://transactor:8888/api/v1
--keystore.lightweight
--log-level=debug
--quality.address=http://morqa:8085/api/v3
--stun-servers=""
service
--agreed-terms-and-conditions
--identity=0xd1a23227bd5ad77f36ba62badcb78a410a1db6c5
--identity.passphrase=localprovider
--openvpn.port=3000
--active-services=openvpn,noop,wireguard
myst-consumer-local:
build:
context: .
dockerfile: ./bin/docker/alpine-prebuilt/Dockerfile
depends_on:
- broker
- discovery
- ipify
- transactor
- hermes
- myst-provider
- morqa
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
expose:
- 4050
command: >
--discovery.ping=1s
--discovery.fetch=1s
--payments.mystscaddress=0xaa9c4e723609cb913430143fbc86d3cbe7adca21
--transactor.registry-address=0xbe180c8CA53F280C7BE8669596fF7939d933AA10
--hermes.hermes-id=0xf2e2c77D2e7207d8341106E6EfA469d1940FD0d8
--transactor.address=http://transactor:8888/api/v1
--transactor.channel-implementation=0x599d43715DF3070f83355D9D90AE62c159E62A75
--ip-detector=http://ipify:3000/?format=json
--location.type=manual
--log-level=debug
--broker-address=broker
--discovery.address=http://discovery:8080/api/v4
--ether.client.rpc=http://ganache:8545
--keystore.lightweight
--firewall.killSwitch.always
--quality.address=http://morqa:8085/api/v3
--stun-servers=""
--local-service-discovery=true
daemon
#go runner to run go programs inside localnet (usefull for contract deployment or e2e test running)
go-runner:
build:
context: .
dockerfile: ./e2e/gorunner/Dockerfile.precompiled
cap_add:
- NET_ADMIN
volumes:
- ./e2e/blockchain/keystore:/node/keystore
working_dir: /node