forked from bnb-chain/bsc-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.cluster.yml
55 lines (50 loc) · 1.29 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
version: "3"
services:
cluster-bsc-rpc: # This is the bootstrap node
image: bsc-geth:docker-local
env_file: .env
ports:
- 8545:8545
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
networks:
default:
ipam:
driver: default
config:
- subnet: 99.99.0.0/16