Skip to content

Commit d3ac865

Browse files
author
EchoBT
committed
fix: Pass bootstrap-peer argument directly in docker-compose
The Dockerfile CMD doesn't use entrypoint.sh, so BOOTSTRAP_PEERS env var was being ignored. Now passing --bootstrap-peer directly via command.
1 parent 80f10e5 commit d3ac865

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ services:
2626
- RUST_LOG=info,platform_chain=debug
2727
- DATA_DIR=/data
2828
- VALIDATOR_SECRET_KEY=${VALIDATOR_SECRET_KEY}
29-
- BOOTSTRAP_PEERS=/dns4/bootnode.platform.network/tcp/9000
29+
30+
command:
31+
- validator-node
32+
- --data-dir
33+
- /data
34+
- --bootstrap-peer
35+
- /dns4/bootnode.platform.network/tcp/9000
3036

3137
healthcheck:
3238
test: ["CMD", "curl", "-sf", "http://localhost:8080/health"]

0 commit comments

Comments
 (0)