Files
ethereum-rpc-docker/taiko/geth/taiko-alethia-geth-archive-leveldb-hash.yml
Para Dox 428938f5b2 fix
2025-04-11 15:52:41 +07:00

136 lines
4.5 KiB
YAML

# use at your own risk
services:
taiko-alethia-archive:
image: ${TAIKO_GETH_IMAGE:-us-docker.pkg.dev/evmchain/images/taiko-geth}:${TAIKO_ALETHIA_GETH_VERSION:-v1.12.0}
user: root
ulimits:
nofile: 1048576 # Max open files (for RPC/WS connections)
sysctls:
# TCP Performance
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
net.core.somaxconn: 32768 # Higher connection queue
# Memory/Connection Management
# net.core.netdev_max_backlog: 50000 # Increase network buffer
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
expose:
- 8545
- 8551
ports:
- 10251:10251
- 10251:10251/udp
volumes:
- ${TAIKO_ALETHIA_GETH_ARCHIVE_LEVELDB_HASH_DATA:-taiko-alethia-geth-archive-leveldb-hash}:/root/.ethereum
- /slowdisk:/slowdisk
- .jwtsecret:/jwtsecret:ro
environment:
- GETH_NETWORKID=167000
command:
- --datadir=/root/.ethereum
- --port=10251
- --nat=extip:${IP}
- --http
- --http.port=8545
- --http.vhosts=*
- --ws
- --ws.port=8545
- --ws.origins=*
- --ws.addr=0.0.0.0
- --ws.api=eth,net,web3,debug,admin,txpool
- --http.addr=0.0.0.0
- --maxpeers=50
- --http.api=eth,net,web3,debug,admin,txpool
- --rpc.gascap=600000000
- --rpc.txfeecap=0
- --authrpc.addr=0.0.0.0
- --authrpc.vhosts=*
- --authrpc.jwtsecret=/jwtsecret
- --db.engine=leveldb
- --state.scheme=hash
- --syncmode=full
- --gcmode=archive
networks:
- chains
restart: unless-stopped
stop_grace_period: 5m
labels:
- traefik.enable=true
- traefik.http.middlewares.taiko-alethia-geth-archive-leveldb-hash-stripprefix.stripprefix.prefixes=/taiko-alethia-archive
- traefik.http.services.taiko-alethia-geth-archive-leveldb-hash.loadbalancer.server.port=8545
- ${NO_SSL:-traefik.http.routers.taiko-alethia-geth-archive-leveldb-hash.entrypoints=websecure}
- ${NO_SSL:-traefik.http.routers.taiko-alethia-geth-archive-leveldb-hash.tls.certresolver=myresolver}
- ${NO_SSL:-traefik.http.routers.taiko-alethia-geth-archive-leveldb-hash.rule=Host(`$DOMAIN`) && PathPrefix(`/taiko-alethia-archive`)}
- ${NO_SSL:+traefik.http.routers.taiko-alethia-geth-archive-leveldb-hash.rule=PathPrefix(`/taiko-alethia-archive`)}
- traefik.http.routers.taiko-alethia-geth-archive-leveldb-hash.middlewares=taiko-alethia-geth-archive-leveldb-hash-stripprefix, ipwhitelist
taiko-alethia-archive-node:
image: ${TAIKO_DRIVER_IMAGE:-us-docker.pkg.dev/evmchain/images/taiko-client}:${TAIKO_ALETHIA_DRIVER_VERSION:-taiko-alethia-client-v0.43.1}
ports:
- 15251:15251
- 15251:15251/udp
environment:
- L1_WS=${ETHEREUM_MAINNET_EXECUTION_WS}
- L1_BEACON=${ETHEREUM_MAINNET_BEACON_REST}
- L2_WS=ws://taiko-alethia-archive:8545
- L2_AUTH=http://taiko-alethia-archive:8551
- P2P_CHECK_POINT_SYNC_URL=
- NODE_IMAGE=us-docker.pkg.dev/evmchain/images/taiko-client
- P2P_SYNC=true
- JWT_SECRET=/jwtsecret
entrypoint: [taiko-client, driver]
networks:
- chains
volumes:
- .jwtsecret:/jwtsecret:ro
restart: unless-stopped
env_file:
- ./taiko/alethia.env
volumes:
taiko-alethia-geth-archive-leveldb-hash:
x-upstreams:
- id: $${ID}
labels:
provider: $${PROVIDER}
chain:
method-groups:
enabled:
- debug
- filter
methods:
disabled:
enabled:
- name: txpool_content # TODO: should be disabled for rollup nodes
# standard geth only
- name: debug_getRawBlock
- name: debug_getRawTransaction
- name: debug_getRawReceipts
- name: debug_getRawHeader
- name: debug_getBadBlocks
# non standard geth only slightly dangerous
- name: debug_intermediateRoots
- name: debug_dumpBlock
# standard geth and erigon
- name: debug_accountRange
- name: debug_getModifiedAccountsByNumber
- name: debug_getModifiedAccountsByHash
# non standard geth and erigon
- name: eth_getRawTransactionByHash
- name: eth_getRawTransactionByBlockHashAndIndex