From bce53c6cbe45f12d149ade4dccea78c64523d56a Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sun, 31 May 2026 14:13:15 +0000 Subject: [PATCH 1/2] config: expose Discv5 UDP port 9200 in docker-compose --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index c88064344..655d75b64 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,7 @@ services: - "7301:6060" # metrics - "30303:30303" # P2P TCP - "30303:30303/udp" # P2P UDP + - "9200:9200/udp" # P2P Discovery v5 command: ["bash", "./execution-entrypoint"] volumes: - ${HOST_DATA_DIR:-./reth-data}:/data From f128264bee2ff6da806a338c845a3bc57475ca6b Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sun, 31 May 2026 20:20:01 +0000 Subject: [PATCH 2/2] fix: add configurable metrics port for consensus service The consensus (node) service hardcodes port 7300 instead of using the METRICS_PORT environment variable. The .env files define BASE_NODE_METRICS_PORT but consensus-entrypoint never reads or passes this to the binary, and docker-compose uses a static mapping. Changes: - consensus-entrypoint: read METRICS_PORT, pass --metrics flag to binary - docker-compose.yml: make port mapping configurable via METRICS_PORT --- consensus-entrypoint | 5 +++-- docker-compose.yml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/consensus-entrypoint b/consensus-entrypoint index 05b89467a..74fa65a0b 100755 --- a/consensus-entrypoint +++ b/consensus-entrypoint @@ -53,12 +53,13 @@ else exit 8 fi export BASE_NODE_P2P_ADVERTISE_IP=$PUBLIC_IP +METRICS_PORT="${METRICS_PORT:-7300}" echo "$BASE_NODE_L2_ENGINE_AUTH_RAW" > "$BASE_NODE_L2_ENGINE_AUTH" if [[ -n "${BASE_NODE_SOURCE_L2_RPC:-}" ]]; then echo "Running base-consensus in follow mode because BASE_NODE_SOURCE_L2_RPC is set" - exec ./base-consensus follow + exec ./base-consensus follow --metrics=0.0.0.0:"$METRICS_PORT" else - exec ./base-consensus node + exec ./base-consensus node --metrics=0.0.0.0:"$METRICS_PORT" fi diff --git a/docker-compose.yml b/docker-compose.yml index 655d75b64..cc710bbe1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,7 +27,7 @@ services: - "7545:8545" # RPC - "9222:9222" # P2P TCP - "9222:9222/udp" # P2P UDP - - "7300:7300" # metrics + - "${METRICS_PORT:-7300}:${METRICS_PORT:-7300}" # metrics - "6060:6060" # pprof command: ["bash", "./consensus-entrypoint"] env_file: