From 3dbe2a6f24b4a1761ab65cd176cc1b1616cb3cda Mon Sep 17 00:00:00 2001 From: Tropicar Date: Wed, 6 Jul 2022 15:05:10 +0200 Subject: [PATCH] Port standarization Add env value, port assigned , flag to personalized the p2p port acording to the avalanche docs and fix the opts value --- build/Dockerfile | 1 + docker-compose.yml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 2d8ee64..f02f69b 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -18,4 +18,5 @@ RUN ln -s /root/avalanchego/avalanchego /usr/local/bin ENTRYPOINT [ "sh", "-c", "exec avalanchego \ --http-host 0.0.0.0 \ + --staking-port=$P2P_PORT \ $EXTRA_OPTS" ] diff --git a/docker-compose.yml b/docker-compose.yml index acc15f8..1a2ffd4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,9 +10,10 @@ services: - "chain:/root/.avalanchego/db" - "validator:/root/.avalanchego/staking" environment: - - EXTRA_OPTS + - P2P_PORT=21061 + - EXTRA_OPT="" ports: - - "9651" + - "21061:21061/tcp" restart: unless-stopped wallet: build: