From aeb5811ba1655bb2ab1b89d7d344081531c26cd5 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Wed, 22 Nov 2023 12:59:47 +0100 Subject: [PATCH] try reth for base --- base-reth.yml | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 base-reth.yml diff --git a/base-reth.yml b/base-reth.yml new file mode 100644 index 00000000..00b52969 --- /dev/null +++ b/base-reth.yml @@ -0,0 +1,76 @@ +version: '3.1' + +services: + base-reth: # this is Optimism's geth client + build: ./base + expose: + - 8545 # RPC / Websocket + - 12544 # P2P TCP (currently unused) + - 12544/udp # P2P UDP (currently unused) + - 6060 # metrics + - 8551 #auth + ports: + - "12544:12544" + - "12544:12544/udp" + command: op-reth node --chain base --rollup.sequencer-http https://sequencer.base.org --metrics 0.0.0.0:6060 --http --http.addr 0.0.0.0 --http.port 8545 --ws --ws.addr 0.0.0.0 --ws.port 8545 --ws.origins '*' --port 12544 --discovery.port 12544 --authrpc.addr 0.0.0.0 --authrpc.jwtsecret /jwtsecret --http.api "debug,eth,net,trace,txpool,web3,rpc,reth" --ws.api "debug,eth,net,trace,txpool,web3,rpc,reth" --http.corsdomain '*' + restart: always + stop_grace_period: 30s + volumes: + - base-reth:/data + - ".jwtsecret:/jwtsecret" + labels: + - "traefik.enable=true" + - "traefik.http.middlewares.base-reth-stripprefix.stripprefix.prefixes=/base-reth" + - "traefik.http.services.base-reth.loadbalancer.server.port=8545" + - "traefik.http.routers.base-reth.entrypoints=websecure" + - "traefik.http.routers.base-reth.tls.certresolver=myresolver" + - "traefik.http.routers.base-reth.rule=Host(`$DOMAIN`) && PathPrefix(`/base-reth`)" + - "traefik.http.routers.base-reth.middlewares=base-reth-stripprefix, ipwhitelist" + networks: + - chains + + + base-reth-node: + build: ./base + depends_on: + - base-reth + expose: + - 8545 # RPC + - 6543 # P2P TCP + - 6543/udp # P2P UDP + - 7300 # metrics + - 6060 # pprof + ports: + - "6543:6543" + - "6543:6543/udp" + command: [ "sh", "./op-node-entrypoint" ] + command: ./op-node + restart: always + stop_grace_period: 30s + volumes: + - ".jwtsecret:/jwtsecret" + environment: + - "OP_NODE_L1_ETH_RPC=${BASE_ETHEREUM_ENDPOINT}" + - "OP_NODE_L2_ENGINE_AUTH=/jwtsecret" + - "OP_NODE_L2_ENGINE_RPC=http://base-reth:8551" + - "OP_NODE_LOG_LEVEL=info" + - "OP_NODE_METRICS_ADDR=0.0.0.0" + - "OP_NODE_METRICS_ENABLED=true" + - "OP_NODE_METRICS_PORT=7300" + - "OP_NODE_P2P_AGENT=base" + - "OP_NODE_P2P_BOOTNODES=enr:-J24QNz9lbrKbN4iSmmjtnr7SjUMk4zB7f1krHZcTZx-JRKZd0kA2gjufUROD6T3sOWDVDnFJRvqBBo62zuF-hYCohOGAYiOoEyEgmlkgnY0gmlwhAPniryHb3BzdGFja4OFQgCJc2VjcDI1NmsxoQKNVFlCxh_B-716tTs-h1vMzZkSs1FTu_OYTNjgufplG4N0Y3CCJAaDdWRwgiQG,enr:-J24QH-f1wt99sfpHy4c0QJM-NfmsIfmlLAMMcgZCUEgKG_BBYFc6FwYgaMJMQN5dsRBJApIok0jFn-9CS842lGpLmqGAYiOoDRAgmlkgnY0gmlwhLhIgb2Hb3BzdGFja4OFQgCJc2VjcDI1NmsxoQJ9FTIv8B9myn1MWaC_2lJ-sMoeCDkusCsk4BYHjjCq04N0Y3CCJAaDdWRwgiQG,enr:-J24QDXyyxvQYsd0yfsN0cRr1lZ1N11zGTplMNlW4xNEc7LkPXh0NAJ9iSOVdRO95GPYAIc6xmyoCCG6_0JxdL3a0zaGAYiOoAjFgmlkgnY0gmlwhAPckbGHb3BzdGFja4OFQgCJc2VjcDI1NmsxoQJwoS7tzwxqXSyFL7g0JM-KWVbgvjfB8JA__T7yY_cYboN0Y3CCJAaDdWRwgiQG,enr:-J24QHmGyBwUZXIcsGYMaUqGGSl4CFdx9Tozu-vQCn5bHIQbR7On7dZbU61vYvfrJr30t0iahSqhc64J46MnUO2JvQaGAYiOoCKKgmlkgnY0gmlwhAPnCzSHb3BzdGFja4OFQgCJc2VjcDI1NmsxoQINc4fSijfbNIiGhcgvwjsjxVFJHUstK9L1T8OTKUjgloN0Y3CCJAaDdWRwgiQG,enr:-J24QG3ypT4xSu0gjb5PABCmVxZqBjVw9ca7pvsI8jl4KATYAnxBmfkaIuEqy9sKvDHKuNCsy57WwK9wTt2aQgcaDDyGAYiOoGAXgmlkgnY0gmlwhDbGmZaHb3BzdGFja4OFQgCJc2VjcDI1NmsxoQIeAK_--tcLEiu7HvoUlbV52MspE0uCocsx1f_rYvRenIN0Y3CCJAaDdWRwgiQG" + - "OP_NODE_P2P_LISTEN_IP=0.0.0.0" + - "OP_NODE_P2P_LISTEN_TCP_PORT=6543" + - "OP_NODE_P2P_LISTEN_UDP_PORT=6543" + - "OP_NODE_ROLLUP_CONFIG=mainnet/rollup.json" + - "OP_NODE_RPC_ADDR=0.0.0.0" + - "OP_NODE_RPC_PORT=8545" + - "OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log" + - "OP_NODE_VERIFIER_L1_CONFS=4" + - "OP_NODE_L1_RPC_KIND=${BASE_ETHEREUM_ENDPOINT_KIND:-basic}" + - "OP_NODE_L1_TRUST_RPC=${BASE_ETHEREUM_ENDPOINT_TRUST:-false}" + networks: + - chains + +volumes: + base-reth: