forked from Hamzaahmed742/relay_cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 973 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
36
37
38
39
40
41
42
43
version: '3'
services:
mysql:
environment:
- MYSQL_ROOT_PASSWORD=example
ports:
- 3306:3306
volumes:
- /YOUR_MYSQL_DATA_DIR:/var/lib/mysql
image: mysql:5.7
ipfs:
ports:
- 4001:4001
- 8080:8080
- 5001:5001
volumes:
- /YOUR_IPFS_DIR/staging:/export
- /YOUR_IPFS_DIR/data:/data/ipfs
command: --enable-pubsub-experiment
image: ipfs/go-ipfs:v0.4.11
eth:
ports:
- 8545:8545
- 30303:30303
volumes:
- /YOUR_ETH_DATA_DIR:/root
command: --datadir /root/.ethereum --rpc --rpcaddr 0.0.0.0 --fast
image: ethereum/client-go:v1.7.3
relay:
depends_on:
- eth
- mysql
- ipfs
ports:
- 8083:8083
volumes:
- /YOUR_RELAY_KEYSTORE_DIR:/keystore
- /YOUR_RELAY_DATA_DIR:/data
command: --unlocks=YOUR_MINER_ACCOUNT --passwords=MINER_ACCOUNT_PASSWORD --config=/data/docker.toml --mode=miner
image: loopring/relay:v0.1.1