update
This commit is contained in:
@@ -30,7 +30,7 @@ x-logging-defaults: &logging-defaults
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
arbitrum-one:
|
arbitrum-one:
|
||||||
image: ${ARBITRUM_FIREETH_IMAGE:-ghcr.io/streamingfast/firehose-ethereum}:${ARBITRUM_ONE_FIREETH_VERSION:-v2.11.13-nitro-nitro-v3.6.5-fh3.0}
|
image: ${ARBITRUM_FIREETH_IMAGE:-ghcr.io/streamingfast/firehose-ethereum}:${ARBITRUM_ONE_FIREETH_VERSION:-v2.11.13-nitro}
|
||||||
sysctls:
|
sysctls:
|
||||||
# TCP Performance
|
# TCP Performance
|
||||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||||
@@ -97,7 +97,7 @@ services:
|
|||||||
- traefik.http.routers.arbitrum-one-nitro-pruned-pebble-hash.middlewares=arbitrum-one-nitro-pruned-pebble-hash-stripprefix, ipallowlist
|
- traefik.http.routers.arbitrum-one-nitro-pruned-pebble-hash.middlewares=arbitrum-one-nitro-pruned-pebble-hash-stripprefix, ipallowlist
|
||||||
|
|
||||||
arbitrum-one-firehose:
|
arbitrum-one-firehose:
|
||||||
image: ${ARBITRUM_FIREETH_IMAGE:-ghcr.io/streamingfast/firehose-ethereum}:${ARBITRUM_ONE_FIREETH_VERSION:-v2.11.13-nitro-nitro-v3.6.5-fh3.0}
|
image: ${ARBITRUM_FIREETH_IMAGE:-ghcr.io/streamingfast/firehose-ethereum}:${ARBITRUM_ONE_FIREETH_VERSION:-v2.11.13-nitro}
|
||||||
expose:
|
expose:
|
||||||
- 10015
|
- 10015
|
||||||
- 10014
|
- 10014
|
||||||
@@ -129,7 +129,7 @@ services:
|
|||||||
- traefik.http.routers.arbitrum-one-nitro-pruned-pebble-hash-firehose.middlewares=ipallowlist
|
- traefik.http.routers.arbitrum-one-nitro-pruned-pebble-hash-firehose.middlewares=ipallowlist
|
||||||
|
|
||||||
arbitrum-one-events:
|
arbitrum-one-events:
|
||||||
image: ${ARBITRUM_FIREETH_IMAGE:-ghcr.io/streamingfast/firehose-ethereum}:${ARBITRUM_ONE_FIREETH_VERSION:-v2.11.13-nitro-nitro-v3.6.5-fh3.0}
|
image: ${ARBITRUM_FIREETH_IMAGE:-ghcr.io/streamingfast/firehose-ethereum}:${ARBITRUM_ONE_FIREETH_VERSION:-v2.11.13-nitro}
|
||||||
expose:
|
expose:
|
||||||
- 10016
|
- 10016
|
||||||
entrypoint: [sh, -c, exec fireeth --config-file="" --log-to-file=false start substreams-tier1 substreams-tier2 $@, _]
|
entrypoint: [sh, -c, exec fireeth --config-file="" --log-to-file=false start substreams-tier1 substreams-tier2 $@, _]
|
||||||
|
|||||||
@@ -0,0 +1,174 @@
|
|||||||
|
---
|
||||||
|
x-logging-defaults: &logging-defaults
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
|
|
||||||
|
# Usage:
|
||||||
|
#
|
||||||
|
# mkdir rpc && cd rpc
|
||||||
|
#
|
||||||
|
# git init
|
||||||
|
# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git
|
||||||
|
# git fetch origin vibe
|
||||||
|
# git checkout origin/vibe
|
||||||
|
#
|
||||||
|
# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret
|
||||||
|
#
|
||||||
|
# env
|
||||||
|
# ...
|
||||||
|
# IP=$(curl ipinfo.io/ip)
|
||||||
|
# DOMAIN=${IP}.traefik.me
|
||||||
|
# COMPOSE_FILE=base.yml:rpc.yml:ethereum/nethermind/ethereum-sepolia-nethermind-pruned-rocksdb-trace--nimbus.yml
|
||||||
|
#
|
||||||
|
# docker compose up -d
|
||||||
|
#
|
||||||
|
# curl -X POST https://${IP}.traefik.me/ethereum-sepolia-nethermind \
|
||||||
|
# -H "Content-Type: application/json" \
|
||||||
|
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||||
|
|
||||||
|
services:
|
||||||
|
ethereum-sepolia-nethermind:
|
||||||
|
image: ${ETHEREUM_NETHERMIND_IMAGE:-nethermind/nethermind}:${ETHEREUM_SEPOLIA_NETHERMIND_VERSION:-1.31.11}
|
||||||
|
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
|
||||||
|
ulimits:
|
||||||
|
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||||
|
user: root
|
||||||
|
ports:
|
||||||
|
- 10835:10835
|
||||||
|
- 10835:10835/udp
|
||||||
|
expose:
|
||||||
|
- 8545
|
||||||
|
- 9091
|
||||||
|
environment:
|
||||||
|
- NETHERMIND_CONFIG=sepolia
|
||||||
|
- NETHERMIND_INITCONFIG_BASEDBPATH=/data/db
|
||||||
|
- NETHERMIND_INITCONFIG_LOGDIRECTORY=/data/logs
|
||||||
|
- NETHERMIND_INITCONFIG_WEBSOCKETSENABLED=true
|
||||||
|
- NETHERMIND_JSONRPCCONFIG_ENABLED=true
|
||||||
|
- NETHERMIND_JSONRPCCONFIG_ENABLEDMODULES=[Eth,Subscribe,TxPool,Web3,Personal,Proof,Net,Parity,Health,Rpc,Debug,Admin,Traces]
|
||||||
|
- NETHERMIND_JSONRPCCONFIG_ENGINEHOST=0.0.0.0
|
||||||
|
- NETHERMIND_JSONRPCCONFIG_ENGINEPORT=8551
|
||||||
|
- NETHERMIND_JSONRPCCONFIG_HOST=0.0.0.0
|
||||||
|
- NETHERMIND_JSONRPCCONFIG_JWTSECRETFILE=/jwtsecret
|
||||||
|
- NETHERMIND_JSONRPCCONFIG_PORT=8545
|
||||||
|
- NETHERMIND_JSONRPCCONFIG_WEBSOCKETSPORT=8545
|
||||||
|
- NETHERMIND_METRICSCONFIG_EXPOSEPORT=9091
|
||||||
|
- NETHERMIND_NETWORKCONFIG_DISCOVERYPORT=10835
|
||||||
|
- NETHERMIND_NETWORKCONFIG_EXTERNALIP=${IP}
|
||||||
|
- NETHERMIND_NETWORKCONFIG_MAXACTIVEPEERS=250
|
||||||
|
- NETHERMIND_NETWORKCONFIG_P2PPORT=10835
|
||||||
|
- NETHERMIND_TRACESTORECONFIG_ENABLED=true
|
||||||
|
- NETHERMIND_TRACESTORECONFIG_TRACETYPES=Trace,Rewards
|
||||||
|
restart: unless-stopped
|
||||||
|
stop_grace_period: 5m
|
||||||
|
networks:
|
||||||
|
- chains
|
||||||
|
volumes:
|
||||||
|
- ${ETHEREUM_SEPOLIA_NETHERMIND_PRUNED_ROCKSDB_TRACE_DATA:-ethereum-sepolia-nethermind-pruned-rocksdb-trace}:/data
|
||||||
|
- .jwtsecret:/jwtsecret:ro
|
||||||
|
- /slowdisk:/slowdisk
|
||||||
|
logging: *logging-defaults
|
||||||
|
labels:
|
||||||
|
- prometheus-scrape.enabled=true
|
||||||
|
- prometheus-scrape.port=9091
|
||||||
|
- prometheus-scrape.path=/metrics
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.middlewares.ethereum-sepolia-nethermind-pruned-rocksdb-trace-stripprefix.stripprefix.prefixes=/ethereum-sepolia-nethermind
|
||||||
|
- traefik.http.services.ethereum-sepolia-nethermind-pruned-rocksdb-trace.loadbalancer.server.port=8545
|
||||||
|
- ${NO_SSL:-traefik.http.routers.ethereum-sepolia-nethermind-pruned-rocksdb-trace.entrypoints=websecure}
|
||||||
|
- ${NO_SSL:-traefik.http.routers.ethereum-sepolia-nethermind-pruned-rocksdb-trace.tls.certresolver=myresolver}
|
||||||
|
- ${NO_SSL:-traefik.http.routers.ethereum-sepolia-nethermind-pruned-rocksdb-trace.rule=Host(`$DOMAIN`) && (Path(`/ethereum-sepolia-nethermind`) || Path(`/ethereum-sepolia-nethermind/`))}
|
||||||
|
- ${NO_SSL:+traefik.http.routers.ethereum-sepolia-nethermind-pruned-rocksdb-trace.rule=Path(`/ethereum-sepolia-nethermind`) || Path(`/ethereum-sepolia-nethermind/`)}
|
||||||
|
- traefik.http.routers.ethereum-sepolia-nethermind-pruned-rocksdb-trace.middlewares=ethereum-sepolia-nethermind-pruned-rocksdb-trace-stripprefix, ipallowlist
|
||||||
|
|
||||||
|
ethereum-sepolia-nethermind-node:
|
||||||
|
image: ${ETHEREUM_NIMBUS_IMAGE:-statusim/nimbus-eth2}:${ETHEREUM_SEPOLIA_NIMBUS_VERSION:-amd64-v25.6.0}
|
||||||
|
user: root
|
||||||
|
ports:
|
||||||
|
- 15835:15835
|
||||||
|
- 15835:15835/udp
|
||||||
|
expose:
|
||||||
|
- 3500
|
||||||
|
entrypoint: /bin/sh -c '/home/user/nimbus-eth2/build/nimbus_beacon_node trustedNodeSync --network=sepolia --trusted-node-url=https://sepolia.beaconstate.info --backfill=false; exec /home/user/nimbus-eth2/build/nimbus_beacon_node "$@"' --
|
||||||
|
command:
|
||||||
|
- --history=prune
|
||||||
|
- --jwt-secret=/jwtsecret
|
||||||
|
- --metrics-address=0.0.0.0
|
||||||
|
- --metrics-port=8008
|
||||||
|
- --nat=extip:${IP}
|
||||||
|
- --network=sepolia
|
||||||
|
- --rest
|
||||||
|
- --rest-address=0.0.0.0
|
||||||
|
- --rest-port=3500
|
||||||
|
- --tcp-port=15835
|
||||||
|
- --udp-port=15835
|
||||||
|
- --web3-url=http://ethereum-sepolia-nethermind:8551
|
||||||
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- ethereum-sepolia-nethermind
|
||||||
|
networks:
|
||||||
|
- chains
|
||||||
|
volumes:
|
||||||
|
- ${ETHEREUM_SEPOLIA_NETHERMIND_PRUNED_ROCKSDB_TRACE__NIMBUS_DATA:-ethereum-sepolia-nethermind-pruned-rocksdb-trace_nimbus}:/root/.cache/nimbus/BeaconNode
|
||||||
|
- .jwtsecret:/jwtsecret:ro
|
||||||
|
logging: *logging-defaults
|
||||||
|
labels:
|
||||||
|
- prometheus-scrape.enabled=true
|
||||||
|
- prometheus-scrape.port=8008
|
||||||
|
- prometheus-scrape.path=/metrics
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.middlewares.ethereum-sepolia-nethermind-pruned-rocksdb-trace-node-stripprefix.stripprefix.prefixes=/ethereum-sepolia-nethermind
|
||||||
|
- traefik.http.services.ethereum-sepolia-nethermind-pruned-rocksdb-trace-node.loadbalancer.server.port=3500
|
||||||
|
- ${NO_SSL:-traefik.http.routers.ethereum-sepolia-nethermind-pruned-rocksdb-trace-node.entrypoints=websecure}
|
||||||
|
- ${NO_SSL:-traefik.http.routers.ethereum-sepolia-nethermind-pruned-rocksdb-trace-node.tls.certresolver=myresolver}
|
||||||
|
- ${NO_SSL:-traefik.http.routers.ethereum-sepolia-nethermind-pruned-rocksdb-trace-node.rule=Host(`$DOMAIN`) && PathPrefix(`/ethereum-sepolia-nethermind/eth`)}
|
||||||
|
- ${NO_SSL:+traefik.http.routers.ethereum-sepolia-nethermind-pruned-rocksdb-trace-node.rule=PathPrefix(`/ethereum-sepolia-nethermind/eth`)}
|
||||||
|
- traefik.http.routers.ethereum-sepolia-nethermind-pruned-rocksdb-trace-node.middlewares=ethereum-sepolia-nethermind-pruned-rocksdb-trace-node-stripprefix, ipallowlist
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
ethereum-sepolia-nethermind-pruned-rocksdb-trace:
|
||||||
|
ethereum-sepolia-nethermind-pruned-rocksdb-trace_nimbus:
|
||||||
|
|
||||||
|
x-upstreams:
|
||||||
|
- id: $${ID}
|
||||||
|
labels:
|
||||||
|
provider: $${PROVIDER}
|
||||||
|
connection:
|
||||||
|
generic:
|
||||||
|
rpc:
|
||||||
|
url: $${RPC_URL}
|
||||||
|
ws:
|
||||||
|
frameSize: 20Mb
|
||||||
|
msgSize: 50Mb
|
||||||
|
url: $${WS_URL}
|
||||||
|
chain: sepolia
|
||||||
|
method-groups:
|
||||||
|
enabled:
|
||||||
|
- debug
|
||||||
|
- filter
|
||||||
|
- trace
|
||||||
|
methods:
|
||||||
|
disabled:
|
||||||
|
enabled:
|
||||||
|
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||||
|
- id: $${ID}-beacon-chain
|
||||||
|
chain: eth-beacon-chain-sepolia
|
||||||
|
labels:
|
||||||
|
provider: $${PROVIDER}-beacon-chain
|
||||||
|
connection:
|
||||||
|
generic:
|
||||||
|
rpc:
|
||||||
|
url: $${RPC_URL}
|
||||||
|
...
|
||||||
Reference in New Issue
Block a user