-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
63 lines (62 loc) · 1.84 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
version: '3.4'
services:
node1:
build:
context: ./nodes/node1
dockerfile: Dockerfile
container_name: geth_node1
ports:
- "8501:8501"
- "30311:30311"
# Uncomment if you need to persist the data on disk
# volumes:
# - ./nodes/node1/geth:/root/ethereum/geth
command: >
geth --datadir /root/ethereum --syncmode 'full' --port 30311
--rpc --rpcaddr '0.0.0.0' --rpcport 8501 --rpccorsdomain '*' --rpcvhosts '*'
--rpcapi 'eth,web3,personal,net'
--ws --wsaddr "0.0.0.0" --wsapi "eth,web3,personal,net" --wsorigins "*"
--networkid 32414
--gasprice '0'
--unlock 0
--password password.txt
--mine --allow-insecure-unlock --nodiscover
node2:
build:
context: ./nodes/node2
dockerfile: Dockerfile
container_name: geth_node2
ports:
- "8502:8502"
- "30312:30312"
# Uncomment if you need to persist the data on disk
# volumes:
# - ./nodes/node2/geth:/root/ethereum/geth
command: >
geth --datadir /root/ethereum --syncmode 'full' --port 30312
--rpc --rpcaddr '0.0.0.0' --rpcport 8502 --rpccorsdomain '*' --rpcvhosts '*'
--rpcapi 'eth,web3,personal,net'
--ws --wsaddr "0.0.0.0" --wsapi "eth,web3,personal,net" --wsorigins "*"
--networkid 32414
--gasprice '0'
--unlock 0
--password password.txt
--mine --allow-insecure-unlock --nodiscover
dashboard:
build:
context: ./monitoring/dashboard
dockerfile: Dockerfile
container_name: dashboard
environment:
- WS_SECRET=eth-net-stats-secret
ports:
- "3000:3000"
ethnet:
build:
context: ./monitoring/api
dockerfile: Dockerfile
links:
- dashboard
container_name: ethnet
volumes:
- ./monitoring/api/app.json:/home/ethnetintel/eth-net-intelligence-api/app.json