forked from bnb-chain/bsc-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.simple.yml
53 lines (48 loc) · 1.05 KB
/
docker-compose.simple.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
version: "3"
services:
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
ports:
- "8545:8545"
- "8546:8546"
command: ash /scripts/bsc-rpc.sh
bsc-validator1:
image: bsc-geth:docker-local
env_file: .env
environment:
NODE_ID: bsc-validator1
BOOTSTRAP_HOST: bsc-rpc
volumes:
- ./storage/bsc-validator1:/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: bsc-rpc
RPC_PORT: 8545
volumes:
- ./scripts:/scripts
restart: always
networks:
default:
ipam:
driver: default
config:
- subnet: 99.99.0.0/16