sync a fullnode save some space

This commit is contained in:
Sebastian
2024-10-17 06:53:17 +02:00
parent 1700537df1
commit 82f08a87d1
2 changed files with 44 additions and 33 deletions

View File

@@ -1,59 +1,68 @@
version: '3.1' version: '3.1'
services: services:
base-reth-fullnode: # this is Optimism's geth client base-fullnode: # this is Optimism's geth client
image: stakesquid/op-reth image: ghcr.io/paradigmxyz/op-reth:v1.1.0
expose: expose:
- 8545 # RPC / Websocket - 8545 # RPC / Websocket
- 19412 # P2P TCP (currently unused) - 27532 # P2P TCP (currently unused)
- 19412/udp # P2P UDP (currently unused) - 27532/udp # P2P UDP (currently unused)
- 6060 # metrics - 6060 # metrics
- 8551 #auth - 855
ports: ports:
- "19412:19412" - "27532:27532"
- "19412:19412/udp" - "27532:27532/udp"
command: node --full --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 19412 --discovery.port 19412 --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 '*' #command: [ "sh", "./geth-entrypoint" ]
restart: always restart: always
stop_grace_period: 30s user: root
stop_grace_period: 3m
command: node --full --chain base --port 27532 --discovery.port 27532 --rollup.sequencer-http https://mainnet-sequencer.base.org --http --ws --authrpc.addr 0.0.0.0 --authrpc.port 9551 --authrpc.jwtsecret /jwtsecret --http.addr 0.0.0.0 --http.port 8545 --ws.addr 0.0.0.0 --ws.port 8545 --ws.origins '*' --http.api "debug,eth,net,trace,txpool,web3,rpc,reth,admin" --ws.api "debug,eth,net,trace,txpool,web3,rpc,reth,admin" --http.corsdomain '*' --rpc.max-logs-per-response 1100000 --rpc.gascap 600000000
volumes: volumes:
- base-reth-fullnode:/root/.local/share/reth/base/db/ - base-reth-fullnode:/root/.local/share/reth/base
- ".jwtsecret:/jwtsecret" - /slowdisk:/slowdisk
- .jwtsecret:/jwtsecret
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.middlewares.base-reth-fullnode-stripprefix.stripprefix.prefixes=/base-reth-fullnode" - "traefik.http.middlewares.base-fullnode-stripprefix.stripprefix.prefixes=/base-fullnode"
- "traefik.http.services.base-reth-fullnode.loadbalancer.server.port=8545" - "traefik.http.services.base-fullnode.loadbalancer.server.port=8545"
- "traefik.http.routers.base-reth-fullnode.entrypoints=websecure" - "traefik.http.routers.base-fullnode.entrypoints=websecure"
- "traefik.http.routers.base-reth-fullnode.tls.certresolver=myresolver" - "traefik.http.routers.base-fullnode.tls.certresolver=myresolver"
- "traefik.http.routers.base-reth-fullnode.rule=Host(`$DOMAIN`) && PathPrefix(`/base-reth-fullnode`)" - "traefik.http.routers.base-fullnode.rule=Host(`$DOMAIN`) && PathPrefix(`/base-fullnode`)"
- "traefik.http.routers.base-reth-fullnode.middlewares=base-reth-stripprefix, ipwhitelist" - "traefik.http.routers.base-fullnode.middlewares=base-fullnode-stripprefix, ipwhitelist"
networks: networks:
- chains - chains
base-reth-fullnode-node: base-fullnode-node:
build: ./base build:
context: ./op
args:
OP_GETH_VERSION: v1.101408.0
OP_NODE_VERSION: v1.9.1
depends_on: depends_on:
- base-reth-fullnode - base-fullnode
volumes:
- .jwtsecret:/jwtsecret
expose: expose:
- 8545 # RPC - 8545 # RPC
- 47544 # P2P TCP - 15729 # P2P TCP
- 47544/udp # P2P UDP - 15729/udp # P2P UDP
- 7300 # metrics - 7300 # metrics
- 6060 # pprof - 6060 # pprof
ports: ports:
- "47544:47544" - "15729:15729"
- "47544:47544/udp" - "15729:15729/udp"
command: [ "sh", "./op-node-entrypoint" ] #command: [ "sh", "./op-node-entrypoint" ]
command: ./op-node entrypoint: ./op-node
restart: always restart: always
stop_grace_period: 30s stop_grace_period: 30s
volumes:
- ".jwtsecret:/jwtsecret"
environment: environment:
- "OP_NODE_NETWORK=base-mainnet" - "OP_NODE_NETWORK=base-mainnet"
- "OP_NODE_SYNCMODE=execution-layer"
- "OP_NODE_L1_ETH_RPC=${BASE_ETHEREUM_ENDPOINT}" - "OP_NODE_L1_ETH_RPC=${BASE_ETHEREUM_ENDPOINT}"
- "OP_NODE_L2_ENGINE_AUTH_RAW=${JWTSECRET}"
- "OP_NODE_L2_ENGINE_AUTH=/jwtsecret" - "OP_NODE_L2_ENGINE_AUTH=/jwtsecret"
- "OP_NODE_L2_ENGINE_RPC=http://base-reth-fullnode:8551" - "OP_NODE_L2_ENGINE_RPC=http://base-fullnode:8551"
- "OP_NODE_LOG_LEVEL=info" - "OP_NODE_LOG_LEVEL=info"
- "OP_NODE_METRICS_ADDR=0.0.0.0" - "OP_NODE_METRICS_ADDR=0.0.0.0"
- "OP_NODE_METRICS_ENABLED=true" - "OP_NODE_METRICS_ENABLED=true"
@@ -61,8 +70,8 @@ services:
- "OP_NODE_P2P_AGENT=base" - "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_0JxdL3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AJ9iSOVdRO95GPYAIc6xmyoCCG6_0JxdL3a0zaGAYiOoAjFgmlkgnY0gmlwhAPckbGHb3BzdGFja4OFQgCJc2VjcDI1NmsxoQJwoS7tzwxqXSyFL7g0JM-KWVbgvjfB8JA__T7yY_cYboN0Y3CCJAaDdWRwgiQG,enr:-J24QHmGyBwUZXIcsGYMaUqGGSl4CFdx9Tozu-vQCn5bHIQbR7On7dZbU61vYvfrJr30t0iahSqhc64J46MnUO2JvQaGAYiOoCKKgmlkgnY0gmlwhAPnCzSHb3BzdGFja4OFQgCJc2VjcDI1NmsxoQINc4fSijfbNIiGhcgvwjsjxVFJHUstK9L1T8OTKUjgloN0Y3CCJAaDdWRwgiQG,enr:-J24QG3ypT4xSu0gjb5PABCmVxZqBjVw9ca7pvsI8jl4KATYAnxBmfkaIuEqy9sKvDHKuNCsy57WwK9wTt2aQgcaDDyGAYiOoGAXgmlkgnY0gmlwhDbGmZaHb3BzdGFja4OFQgCJc2VjcDI1NmsxoQIeAK_--tcLEiu7HvoUlbV52MspE0uCocsx1f_rYvRenIN0Y3CCJAaDdWRwgiQG"
- "OP_NODE_P2P_LISTEN_IP=0.0.0.0" - "OP_NODE_P2P_LISTEN_IP=0.0.0.0"
- "OP_NODE_P2P_LISTEN_TCP_PORT=47544" - "OP_NODE_P2P_LISTEN_TCP_PORT=15729"
- "OP_NODE_P2P_LISTEN_UDP_PORT=47544" - "OP_NODE_P2P_LISTEN_UDP_PORT=15729"
- "OP_NODE_ROLLUP_CONFIG=mainnet/rollup.json" - "OP_NODE_ROLLUP_CONFIG=mainnet/rollup.json"
- "OP_NODE_RPC_ADDR=0.0.0.0" - "OP_NODE_RPC_ADDR=0.0.0.0"
- "OP_NODE_RPC_PORT=8545" - "OP_NODE_RPC_PORT=8545"
@@ -70,6 +79,7 @@ services:
- "OP_NODE_VERIFIER_L1_CONFS=4" - "OP_NODE_VERIFIER_L1_CONFS=4"
- "OP_NODE_L1_RPC_KIND=${BASE_ETHEREUM_ENDPOINT_KIND:-basic}" - "OP_NODE_L1_RPC_KIND=${BASE_ETHEREUM_ENDPOINT_KIND:-basic}"
- "OP_NODE_L1_TRUST_RPC=${BASE_ETHEREUM_ENDPOINT_TRUST:-false}" - "OP_NODE_L1_TRUST_RPC=${BASE_ETHEREUM_ENDPOINT_TRUST:-false}"
- "OP_NODE_L1_BEACON=${BASE_ETHEREUM_ENDPOINT_BEACON}"
networks: networks:
- chains - chains

View File

@@ -5,7 +5,7 @@
"https://mainnet.base.org" "https://mainnet.base.org"
], ],
"default": [ "default": [
"base-fullnode" "base-fullnode", "base-reth-fullnode"
], ],
"archive": ["base-reth"] "archive": ["base-reth"]
}, },
@@ -153,7 +153,8 @@
"urls": [ "urls": [
"https://rpc.blast.io" "https://rpc.blast.io"
], ],
"default": [ "default": ["op-blast-mainnet-fullnode"],
"archive": [
"op-blast-mainnet" "op-blast-mainnet"
] ]
}, },