Skip to content

Commit 0fe9c92

Browse files
committed
fixed paths after update to v1.1.12
1 parent 51cc033 commit 0fe9c92

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

bsc/docker-compose.no-proxy.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ services:
66
container_name: bsc-pruning
77
entrypoint:
88
- bsc
9+
- --datadir
10+
- "/bsc/.ethereum"
911
- snapshot
1012
- prune-state
1113
restart: "no"
1214
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
1517

1618
bsc:
1719
image: bsc:local
@@ -24,8 +26,10 @@ services:
2426
entrypoint:
2527
- docker-entrypoint.sh
2628
- bsc
29+
- --datadir
30+
- "/bsc/.ethereum"
2731
- --config
28-
- "/root/.ethereum/config.toml"
32+
- "/bsc/config/config.toml"
2933
- --port
3034
- "${P2P_PORT}"
3135
- --rpc.allow-unprotected-txs
@@ -62,5 +66,5 @@ services:
6266
- ${WS_PORT}:${WS_PORT}
6367
- ${P2P_PORT}:${P2P_PORT}
6468
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

bsc/docker-compose.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ services:
66
container_name: bsc-pruning
77
entrypoint:
88
- bsc
9+
- --datadir
10+
- "/bsc/.ethereum"
911
- snapshot
1012
- prune-state
1113
restart: "no"
1214
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
1517

1618
bsc:
1719
image: bsc:local
@@ -24,8 +26,10 @@ services:
2426
entrypoint:
2527
- docker-entrypoint.sh
2628
- bsc
29+
- --datadir
30+
- "/bsc/.ethereum"
2731
- --config
28-
- "/root/.ethereum/config.toml"
32+
- "/bsc/config/config.toml"
2933
- --port
3034
- "${P2P_PORT}"
3135
- --rpc.allow-unprotected-txs
@@ -66,8 +70,8 @@ services:
6670
# - ${WS_PORT}:${WS_PORT}
6771
- ${P2P_PORT}:${P2P_PORT}
6872
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
7175
labels:
7276
- "traefik.enable=true"
7377
- "traefik.http.routers.bsc-http.middlewares=bsc-http-acl"

bsc/docker-entrypoint.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/sh
22
set -x
33

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
99
fi
1010

1111
exec "$@"

0 commit comments

Comments
 (0)