-
Notifications
You must be signed in to change notification settings - Fork 99
/
docker-compose.yml
35 lines (35 loc) · 987 Bytes
/
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
version: '3.3'
services:
near-node:
build: .
network_mode: host
command: bash -c "node index.js start near-node; node index.js start near-node && while true; do sleep 30; done;"
ganache:
build: .
network_mode: host
command: >
bash -c "
while ! nc -z localhost 3030; do
sleep 1
done
ganache-cli --hardfork london --port 9545 --blockTime 12 --gasLimit 10000000 --account='0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,10000000000000000000000000000'
"
eth2near-relay:
build: .
network_mode: host
depends_on:
- ganache
command: >
bash -c "
while ! nc -z localhost 9545; do
sleep 1
done
node index.js init-near-contracts &&
node index.js start eth2near-relay --daemon false
"
compile-solidity:
image: node:10.23-buster
volumes:
- ./contracts/eth:/host
working_dir: /host
command: ./build_all.sh