From 1cd53aacd572ea1b4c40f2c16863fdbbf9234783 Mon Sep 17 00:00:00 2001 From: Mateumiralles Date: Thu, 25 Apr 2024 10:24:34 +0200 Subject: [PATCH] p2p port exposure --- docker-compose.yml | 14 +++++++------- op-geth/entrypoint.sh | 3 +-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d259d97..7ca3fe3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,17 +6,17 @@ services: args: UPSTREAM_VERSION: v1.101311.0 volumes: - - data:/data + - "data:/data" restart: unless-stopped environment: - EXTRA_FLAGS - - P2P_PORT=33142 + - P2P_PORT=30303 - SYNCMODE=snap - - HISTORICAL_RPC_URL=http://op-l2geth.dappnode:8545 - - SEQUENCER_HTTP_URL=https://bedrock-beta-1-sequencer.optimism.io - image: geth.op-geth.dnp.dappnode.eth:0.1.0 + - "HISTORICAL_RPC_URL=http://op-l2geth.dappnode:8545" + - "SEQUENCER_HTTP_URL=https://bedrock-beta-1-sequencer.optimism.io" + image: "geth.op-geth.dnp.dappnode.eth:0.1.1" ports: - - 33142:33142/tcp - - 33142:33142/udp + - "33142:30303/tcp" + - "33142:30303/udp" volumes: data: {} diff --git a/op-geth/entrypoint.sh b/op-geth/entrypoint.sh index 5a17372..33741c7 100755 --- a/op-geth/entrypoint.sh +++ b/op-geth/entrypoint.sh @@ -76,8 +76,7 @@ exec geth --datadir $DATA_DIR \ --authrpc.vhosts "*" \ --authrpc.jwtsecret /config/jwtsecret.hex \ --verbosity 3 \ - --nodiscover \ - --maxpeers 0 \ --syncmode=snap \ + --port ${P2P_PORT} \ --networkid=10 \ ${EXTRA_FLAGS}