-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (82 loc) · 2.18 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
version: '3.4'
services:
node1:
build:
context: ./nodes/node1
dockerfile: Dockerfile
container_name: geth_node1
command: >
geth --datadir /root/ethereum --syncmode 'full' --port 30311
--http --http.addr '0.0.0.0' --http.port 8501 --http.corsdomain '*' --http.vhosts '*' --http.api 'eth,web3,personal,net'
--ws --ws.addr '0.0.0.0' --ws.api 'eth,web3,personal,net' --ws.origins '*'
--networkid 32414 --nodiscover --allow-insecure-unlock --mine
--miner.gasprice '0'
--unlock 0
--password password
ports:
- "8501:8501"
- "30311:30311"
volumes:
- ./nodes/node1/geth:/root/ethereum/geth
node2:
build:
context: ./nodes/node2
dockerfile: Dockerfile
container_name: geth_node2
command: >
geth --datadir /root/ethereum --syncmode 'full' --port 30312
--networkid 32414 --ipcdisable --nodiscover
--mine --allow-insecure-unlock
--password password
--miner.gasprice '0'
--unlock 0
ports:
- "30312:30312"
volumes:
- ./nodes/node2/geth:/root/ethereum/geth
node3:
build:
context: ./nodes/node3
dockerfile: Dockerfile
container_name: geth_node3
command: >
geth --datadir /root/ethereum --syncmode 'full' --port 30313
--networkid 32414 --ipcdisable --nodiscover
--mine --allow-insecure-unlock
--password password
--miner.gasprice '0'
--unlock 0
ports:
- "30313:30313"
volumes:
- ./nodes/node3/geth:/root/ethereum/geth
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
container_name: ethnet
links:
- dashboard
volumes:
- ./monitoring/api/app.json:/home/ethnetintel/eth-net-intelligence-api/app.json
app:
build:
context: ./app
dockerfile: Dockerfile
container_name: vaccine_app
links:
- node1
ports:
- "80:8000"
volumes:
- ./app:/usr/app
- /usr/app/node_modules