forked from bnb-chain/bsc-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.cluster.yml
72 lines (65 loc) · 1.61 KB
/
docker-compose.cluster.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
version: "3"
services:
cluster-bsc-rpc: # This is the bootstrap node
image: bsc-geth:docker-local
env_file: .env
environment:
NODE_ID: bsc-rpc
volumes:
- ./storage/bsc-rpc:/root/.ethereum
- ./scripts:/scripts
- ./config:/config
command: ash /scripts/bsc-rpc.sh
cluster-bsc-validator1:
image: bsc-geth:docker-local
env_file: .env
environment:
NODE_ID: bsc-validator1
BOOTSTRAP_HOST: cluster-bsc-rpc
volumes:
- ./storage/bsc-validator1:/root/.ethereum
- ./scripts:/scripts
command: ash /scripts/bsc-validator.sh
cluster-bsc-validator2:
image: bsc-geth:docker-local
env_file: .env
environment:
NODE_ID: bsc-validator2
BOOTSTRAP_HOST: cluster-bsc-rpc
volumes:
- ./storage/bsc-validator2:/root/.ethereum
- ./scripts:/scripts
command: ash /scripts/bsc-validator.sh
cluster-bsc-validator3:
image: bsc-geth:docker-local
env_file: .env
environment:
NODE_ID: bsc-validator3
BOOTSTRAP_HOST: cluster-bsc-rpc
volumes:
- ./storage/bsc-validator3:/root/.ethereum
- ./scripts:/scripts
command: ash /scripts/bsc-validator.sh
netstats:
build: ./netstats
ports:
- 3000:3000
environment:
WS_SECRET: bscpwd
restart: always
truffle-test:
build: ./truffle-test
command: /scripts/truffle-test.sh
env_file: .env
environment:
RPC_HOST: cluster-bsc-rpc
RPC_PORT: 8545
volumes:
- ./scripts:/scripts
restart: always
networks:
default:
ipam:
driver: default
config:
- subnet: 99.99.0.0/16