File tree Expand file tree Collapse file tree 3 files changed +23
-15
lines changed Expand file tree Collapse file tree 3 files changed +23
-15
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,14 @@ services:
6
6
container_name : bsc-pruning
7
7
entrypoint :
8
8
- bsc
9
+ - --datadir
10
+ - " /bsc/.ethereum"
9
11
- snapshot
10
12
- prune-state
11
13
restart : " no"
12
14
volumes :
13
- - ./bsc-data:/root /.ethereum
14
- - ./config.toml:/root/.ethereum /config.toml
15
+ - ./bsc-data:/bsc /.ethereum
16
+ - ./config.toml:/bsc/config /config.toml
15
17
16
18
bsc :
17
19
image : bsc:local
@@ -24,8 +26,10 @@ services:
24
26
entrypoint :
25
27
- docker-entrypoint.sh
26
28
- bsc
29
+ - --datadir
30
+ - " /bsc/.ethereum"
27
31
- --config
28
- - " /root/.ethereum /config.toml"
32
+ - " /bsc/config /config.toml"
29
33
- --port
30
34
- " ${P2P_PORT}"
31
35
- --rpc.allow-unprotected-txs
@@ -62,5 +66,5 @@ services:
62
66
- ${WS_PORT}:${WS_PORT}
63
67
- ${P2P_PORT}:${P2P_PORT}
64
68
volumes :
65
- - ./bsc-data:/root /.ethereum
66
- - ./config.toml:/root/.ethereum /config.toml
69
+ - ./bsc-data:/bsc /.ethereum
70
+ - ./config.toml:/bsc/config /config.toml
Original file line number Diff line number Diff line change @@ -6,12 +6,14 @@ services:
6
6
container_name : bsc-pruning
7
7
entrypoint :
8
8
- bsc
9
+ - --datadir
10
+ - " /bsc/.ethereum"
9
11
- snapshot
10
12
- prune-state
11
13
restart : " no"
12
14
volumes :
13
- - ./bsc-data:/root /.ethereum
14
- - ./config.toml:/root/.ethereum /config.toml
15
+ - ./bsc-data:/bsc /.ethereum
16
+ - ./config.toml:/bsc/config /config.toml
15
17
16
18
bsc :
17
19
image : bsc:local
@@ -24,8 +26,10 @@ services:
24
26
entrypoint :
25
27
- docker-entrypoint.sh
26
28
- bsc
29
+ - --datadir
30
+ - " /bsc/.ethereum"
27
31
- --config
28
- - " /root/.ethereum /config.toml"
32
+ - " /bsc/config /config.toml"
29
33
- --port
30
34
- " ${P2P_PORT}"
31
35
- --rpc.allow-unprotected-txs
@@ -66,8 +70,8 @@ services:
66
70
# - ${WS_PORT}:${WS_PORT}
67
71
- ${P2P_PORT}:${P2P_PORT}
68
72
volumes :
69
- - ./bsc-data:/root /.ethereum
70
- - ./config.toml:/root/.ethereum /config.toml
73
+ - ./bsc-data:/bsc /.ethereum
74
+ - ./config.toml:/bsc/config /config.toml
71
75
labels :
72
76
- " traefik.enable=true"
73
77
- " traefik.http.routers.bsc-http.middlewares=bsc-http-acl"
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
set -x
3
3
4
- if [ ! -f /root/.ethereum /setupdone ]; then
5
- wget -O /root /mainnet.zip " https://github.com/bnb-chain/bsc/releases/download/${BSC_TAG} /mainnet.zip"
6
- unzip -o -j /root /mainnet.zip " mainnet/genesis.json" -d /root/.ethereum /
7
- bsc init /root /.ethereum/genesis.json
8
- touch /root/.ethereum /setupdone
4
+ if [ ! -f /bsc/config /setupdone ]; then
5
+ wget -O /bsc /mainnet.zip " https://github.com/bnb-chain/bsc/releases/download/${BSC_TAG} /mainnet.zip"
6
+ unzip -o -j /bsc /mainnet.zip " mainnet/genesis.json" -d /bsc/config /
7
+ bsc --datadir /bsc /.ethereum init /bsc/config /genesis.json
8
+ touch /bsc/config /setupdone
9
9
fi
10
10
11
11
exec " $@ "
You can’t perform that action at this time.
0 commit comments