From 092020de35671d1563f871645e1bc9fa523a9828 Mon Sep 17 00:00:00 2001 From: Michael de Hoog Date: Mon, 10 Jul 2023 11:44:24 -1000 Subject: [PATCH 1/2] Expose op-node P2P UDP port Add docs --- docker-compose.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d6bd8d992..b6db81e76 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,10 +2,10 @@ services: geth: # this is Optimism's geth client build: . ports: - - 8545:8545 - - 8546:8546 - - 30303:30303 - - 7301:6060 # metrics + - 8545:8545 # RPC + - 8546:8546 # websocket + - 30303:30303 # P2P (currently unused) + - 7301:6060 # metrics command: [ "sh", "./geth-entrypoint" ] env_file: - .env.goerli @@ -14,10 +14,11 @@ services: depends_on: - geth ports: - - 7545:8545 - - 9222:9222 - - 7300:7300 # metrics - - 6060:6060 + - 7545:8545 # RPC + - 9222:9222 # P2P + - 9222:9222/udp # P2P + - 7300:7300 # metrics + - 6060:6060 # pprof command: [ "sh", "./op-node-entrypoint" ] env_file: - .env.goerli From b4affe8959ee40ab0ae0d6ce6341f4a29ff58c82 Mon Sep 17 00:00:00 2001 From: Michael de Hoog Date: Mon, 10 Jul 2023 11:50:13 -1000 Subject: [PATCH 2/2] Also add UDP for 30303 --- docker-compose.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b6db81e76..d48c21303 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,10 +2,11 @@ services: geth: # this is Optimism's geth client build: . ports: - - 8545:8545 # RPC - - 8546:8546 # websocket - - 30303:30303 # P2P (currently unused) - - 7301:6060 # metrics + - 8545:8545 # RPC + - 8546:8546 # websocket + - 30303:30303 # P2P TCP (currently unused) + - 30303:30303/udp # P2P UDP (currently unused) + - 7301:6060 # metrics command: [ "sh", "./geth-entrypoint" ] env_file: - .env.goerli @@ -15,8 +16,8 @@ services: - geth ports: - 7545:8545 # RPC - - 9222:9222 # P2P - - 9222:9222/udp # P2P + - 9222:9222 # P2P TCP + - 9222:9222/udp # P2P UDP - 7300:7300 # metrics - 6060:6060 # pprof command: [ "sh", "./op-node-entrypoint" ]