Skip to content

Commit

Permalink
add p2p config
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpeterson91 committed Nov 28, 2023
1 parent 5d69ad6 commit dfd6833
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dappnode_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"globalEnvs": [
{
"envs": ["EXECUTION_CLIENT_MAINNET", "OP_EXECUTION_CLIENT"],
"envs": ["EXECUTION_CLIENT_MAINNET", "OP_EXECUTION_CLIENT", "DOMAIN"],
"services": ["op-node"]
}
]
Expand Down
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ services:
context: op-node
args:
UPSTREAM_VERSION: v1.1.4
ports:
- "9222:9222/udp"
- "9222:9222/tcp"
environment:
CUSTOM_L1_RPC: ""
EXTRA_OPTS: ""
CUSTOM_L1_RPC: ""
EXTRA_OPTS: ""
restart: unless-stopped
image: "op-node.op-node.dnp.dappnode.eth:0.1.0"
4 changes: 4 additions & 0 deletions op-node/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ while true; do
--l1.trustrpc=$L1_RPC_TRUST \
--l2="$L2_ENGINE" \
--l2.jwt-secret="$JWT_PATH" \
--p2p.advertise.ip="${_DAPPNODE_GLOBAL_DOMAIN}" \
--p2p.listen.ip=0.0.0.0 \
--p2p.listen.tcp=9222 \
--p2p.listen.udp=9222 \
--rpc.addr=0.0.0.0 \
--rpc.port=9545 \
${EXTRA_OPTS}
Expand Down

0 comments on commit dfd6833

Please sign in to comment.