jovay: add aldaba pruned compose for mainnet and sepolia
Vendor L2 RPC (jovay/l2-rpc:0.14.0-rc1) with init seeding, Traefik /jovay-mainnet and /jovay-sepolia routes, and dshackle upstream labels. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3367,6 +3367,38 @@
|
||||
"immutable-zkevm-testnet-geth-pruned-pebble-path"
|
||||
]
|
||||
},
|
||||
{
|
||||
"chain": "mainnet",
|
||||
"client": "aldaba",
|
||||
"compose_file": "jovay/aldaba/jovay-mainnet-aldaba-pruned",
|
||||
"features": [],
|
||||
"network": "jovay",
|
||||
"node": "conf",
|
||||
"relay": null,
|
||||
"stack": null,
|
||||
"type": "pruned",
|
||||
"volumes": [
|
||||
"jovay-mainnet-aldaba-pruned",
|
||||
"jovay-mainnet-aldaba-pruned_conf",
|
||||
"jovay-mainnet-aldaba-pruned_log"
|
||||
]
|
||||
},
|
||||
{
|
||||
"chain": "sepolia",
|
||||
"client": "aldaba",
|
||||
"compose_file": "jovay/aldaba/jovay-sepolia-aldaba-pruned",
|
||||
"features": [],
|
||||
"network": "jovay",
|
||||
"node": "conf",
|
||||
"relay": null,
|
||||
"stack": null,
|
||||
"type": "pruned",
|
||||
"volumes": [
|
||||
"jovay-sepolia-aldaba-pruned",
|
||||
"jovay-sepolia-aldaba-pruned_conf",
|
||||
"jovay-sepolia-aldaba-pruned_log"
|
||||
]
|
||||
},
|
||||
{
|
||||
"chain": "mainnet",
|
||||
"client": "go",
|
||||
|
||||
165
jovay/aldaba/jovay-mainnet-aldaba-pruned.yml
Normal file
165
jovay/aldaba/jovay-mainnet-aldaba-pruned.yml
Normal file
@@ -0,0 +1,165 @@
|
||||
---
|
||||
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:jovay/aldaba/jovay-mainnet-aldaba-pruned.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/jovay-mainnet \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
jovay-mainnet-init-conf:
|
||||
image: ${JOVAY_ALDABA_IMAGE:-jovay-release-registry.cn-hongkong.cr.aliyuncs.com/jovay/l2-rpc}:${JOVAY_MAINNET_ALDABA_VERSION:-0.14.0-rc1}
|
||||
user: 0:0
|
||||
entrypoint: [/bin/sh, -c]
|
||||
command:
|
||||
- |
|
||||
set -e
|
||||
if [ -z "$$(ls -A /conf 2>/dev/null)" ]; then
|
||||
cp -a /opt/l2_deploy/conf/. /conf/
|
||||
fi
|
||||
restart: no
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${JOVAY_MAINNET_ALDABA_PRUNED_CONF:-jovay-mainnet-aldaba-pruned_conf}:/conf
|
||||
logging: *logging-defaults
|
||||
|
||||
jovay-mainnet-init:
|
||||
image: alpine:3.21
|
||||
user: 0:0
|
||||
entrypoint: [/bin/sh, -c]
|
||||
command:
|
||||
- |
|
||||
set -e
|
||||
apk add --no-cache wget coreutils
|
||||
if [ ! -f /conf/genesis.aldaba-ng.conf ]; then
|
||||
wget -qO /tmp/genesis.conf "http://dl.jovay.io/snapshot/genesis.conf"
|
||||
echo "502c910cbc21137c606621622fe67d28 /tmp/genesis.conf" | md5sum -c -
|
||||
mv /tmp/genesis.conf /conf/genesis.aldaba-ng.conf
|
||||
fi
|
||||
if [ ! -f /conf/VERSION ]; then
|
||||
wget -qO /tmp/VERSION "http://dl.jovay.io/snapshot/VERSION_epoch16905"
|
||||
echo "3b8bfc464d24c101e0b407aeba200345 /tmp/VERSION" | md5sum -c -
|
||||
mv /tmp/VERSION /conf/VERSION
|
||||
fi
|
||||
restart: no
|
||||
depends_on:
|
||||
jovay-mainnet-init-conf:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${JOVAY_MAINNET_ALDABA_PRUNED_CONF:-jovay-mainnet-aldaba-pruned_conf}:/conf
|
||||
logging: *logging-defaults
|
||||
|
||||
jovay-mainnet:
|
||||
image: ${JOVAY_ALDABA_IMAGE:-jovay-release-registry.cn-hongkong.cr.aliyuncs.com/jovay/l2-rpc}:${JOVAY_MAINNET_ALDABA_VERSION:-0.14.0-rc1}
|
||||
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: 1000:1000
|
||||
expose:
|
||||
- 18100
|
||||
- 18200
|
||||
- 19000
|
||||
environment:
|
||||
- EXTERNAL_CLB_PRE_EXPOSERPC_URL=noise_tcp://47.83.131.74:52398?842016e6eb94da561b1b4c856e08bf71cd70c05ea847e934b8be1d5a74a979f8;noise_tcp://47.83.131.74:52399?ce08efde90a7970d18dd6763fdc68d19a24084fd7c8cf67a68a19e943b30c5e3
|
||||
- SEQUENCER_ADVERTISE_NODE_URL=alb-cnjrn9zqms3o5flehu.cn-hongkong.alb.aliyuncsslbintl.com:80
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
depends_on:
|
||||
jovay-mainnet-init:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${JOVAY_MAINNET_ALDABA_PRUNED_CONF:-jovay-mainnet-aldaba-pruned_conf}:/opt/l2_deploy/conf
|
||||
- ${JOVAY_MAINNET_ALDABA_PRUNED_DATA:-jovay-mainnet-aldaba-pruned}:/opt/l2_deploy/light/data
|
||||
- ${JOVAY_MAINNET_ALDABA_PRUNED_LOG:-jovay-mainnet-aldaba-pruned_log}:/opt/l2_deploy/light/log
|
||||
- type: volume
|
||||
source: ${JOVAY_MAINNET_ALDABA_PRUNED_CONF:-jovay-mainnet-aldaba-pruned_conf}
|
||||
target: /opt/l2_deploy/bin/VERSION
|
||||
volume:
|
||||
subpath: VERSION
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=false
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.jovay-mainnet-aldaba-pruned-stripprefix.stripprefix.prefixes=/jovay-mainnet
|
||||
- traefik.http.services.jovay-mainnet-aldaba-pruned.loadbalancer.server.port=18100
|
||||
- ${NO_SSL:-traefik.http.routers.jovay-mainnet-aldaba-pruned.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.jovay-mainnet-aldaba-pruned.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.jovay-mainnet-aldaba-pruned.rule=Host(`$DOMAIN`) && (Path(`/jovay-mainnet`) || Path(`/jovay-mainnet/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.jovay-mainnet-aldaba-pruned.rule=Path(`/jovay-mainnet`) || Path(`/jovay-mainnet/`)}
|
||||
- traefik.http.routers.jovay-mainnet-aldaba-pruned.middlewares=jovay-mainnet-aldaba-pruned-stripprefix, ipallowlist
|
||||
- traefik.http.routers.jovay-mainnet-aldaba-pruned.priority=50 # gets any request that is not GET with UPGRADE header
|
||||
- traefik.http.routers.jovay-mainnet-aldaba-pruned-ws.priority=100 # answers GET requests first
|
||||
- traefik.http.services.jovay-mainnet-aldaba-pruned-ws.loadbalancer.server.port=18200
|
||||
- traefik.http.routers.jovay-mainnet-aldaba-pruned-ws.service=jovay-mainnet-aldaba-pruned-ws
|
||||
- traefik.http.routers.jovay-mainnet-aldaba-pruned.service=jovay-mainnet-aldaba-pruned
|
||||
- ${NO_SSL:-traefik.http.routers.jovay-mainnet-aldaba-pruned-ws.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.jovay-mainnet-aldaba-pruned-ws.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.jovay-mainnet-aldaba-pruned-ws.rule=Host(`$DOMAIN`) && (Path(`/jovay-mainnet`) || Path(`/jovay-mainnet/`)) && HeadersRegexp(`Upgrade`, `(?i)websocket`)}
|
||||
- ${NO_SSL:+traefik.http.routers.jovay-mainnet-aldaba-pruned-ws.rule=(Path(`/jovay-mainnet`) || Path(`/jovay-mainnet/`)) && HeadersRegexp(`Upgrade`, `(?i)websocket`)}
|
||||
- traefik.http.routers.jovay-mainnet-aldaba-pruned-ws.middlewares=jovay-mainnet-aldaba-pruned-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
jovay-mainnet-aldaba-pruned:
|
||||
jovay-mainnet-aldaba-pruned_conf:
|
||||
jovay-mainnet-aldaba-pruned_log:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: jovay
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
methods:
|
||||
disabled:
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
165
jovay/aldaba/jovay-sepolia-aldaba-pruned.yml
Normal file
165
jovay/aldaba/jovay-sepolia-aldaba-pruned.yml
Normal file
@@ -0,0 +1,165 @@
|
||||
---
|
||||
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:jovay/aldaba/jovay-sepolia-aldaba-pruned.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/jovay-sepolia \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
jovay-sepolia-init-conf:
|
||||
image: ${JOVAY_ALDABA_IMAGE:-jovay-release-registry.cn-hongkong.cr.aliyuncs.com/jovay/l2-rpc}:${JOVAY_SEPOLIA_ALDABA_VERSION:-0.14.0-rc1}
|
||||
user: 0:0
|
||||
entrypoint: [/bin/sh, -c]
|
||||
command:
|
||||
- |
|
||||
set -e
|
||||
if [ -z "$$(ls -A /conf 2>/dev/null)" ]; then
|
||||
cp -a /opt/l2_deploy/conf/. /conf/
|
||||
fi
|
||||
restart: no
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${JOVAY_SEPOLIA_ALDABA_PRUNED_CONF:-jovay-sepolia-aldaba-pruned_conf}:/conf
|
||||
logging: *logging-defaults
|
||||
|
||||
jovay-sepolia-init:
|
||||
image: alpine:3.21
|
||||
user: 0:0
|
||||
entrypoint: [/bin/sh, -c]
|
||||
command:
|
||||
- |
|
||||
set -e
|
||||
apk add --no-cache wget coreutils
|
||||
if [ ! -f /conf/genesis.aldaba-ng.conf ]; then
|
||||
wget -qO /tmp/genesis.conf "http://dl-testnet.jovay.io/snapshot/genesis.conf"
|
||||
echo "1b6ad3d9fa67a596ca094e89bd2280ee /tmp/genesis.conf" | md5sum -c -
|
||||
mv /tmp/genesis.conf /conf/genesis.aldaba-ng.conf
|
||||
fi
|
||||
if [ ! -f /conf/VERSION ]; then
|
||||
wget -qO /tmp/VERSION "http://dl-testnet.jovay.io/snapshot/VERSION_epoch26280"
|
||||
echo "994db44ba74a280efe44efdcd3f4422d /tmp/VERSION" | md5sum -c -
|
||||
mv /tmp/VERSION /conf/VERSION
|
||||
fi
|
||||
restart: no
|
||||
depends_on:
|
||||
jovay-sepolia-init-conf:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${JOVAY_SEPOLIA_ALDABA_PRUNED_CONF:-jovay-sepolia-aldaba-pruned_conf}:/conf
|
||||
logging: *logging-defaults
|
||||
|
||||
jovay-sepolia:
|
||||
image: ${JOVAY_ALDABA_IMAGE:-jovay-release-registry.cn-hongkong.cr.aliyuncs.com/jovay/l2-rpc}:${JOVAY_SEPOLIA_ALDABA_VERSION:-0.14.0-rc1}
|
||||
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: 1000:1000
|
||||
expose:
|
||||
- 18100
|
||||
- 18200
|
||||
- 19000
|
||||
environment:
|
||||
- EXTERNAL_CLB_PRE_EXPOSERPC_URL=noise_tcp://43.106.17.221:52399?2d655725a449ef9f5f1b048d596736c0e4aaaac3fd9b6bd3f7eef5dee8517d7d;noise_tcp://43.106.17.221:52398?c9664991ff25fd390f10d29c1e024594067f4e00ef470388e89f29bd9a403d23
|
||||
- SEQUENCER_ADVERTISE_NODE_URL=alb-ism8q21lfjeen07hq3.ap-southeast-1.alb.aliyuncsslbintl.com:80
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
depends_on:
|
||||
jovay-sepolia-init:
|
||||
condition: service_completed_successfully
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${JOVAY_SEPOLIA_ALDABA_PRUNED_CONF:-jovay-sepolia-aldaba-pruned_conf}:/opt/l2_deploy/conf
|
||||
- ${JOVAY_SEPOLIA_ALDABA_PRUNED_DATA:-jovay-sepolia-aldaba-pruned}:/opt/l2_deploy/light/data
|
||||
- ${JOVAY_SEPOLIA_ALDABA_PRUNED_LOG:-jovay-sepolia-aldaba-pruned_log}:/opt/l2_deploy/light/log
|
||||
- type: volume
|
||||
source: ${JOVAY_SEPOLIA_ALDABA_PRUNED_CONF:-jovay-sepolia-aldaba-pruned_conf}
|
||||
target: /opt/l2_deploy/bin/VERSION
|
||||
volume:
|
||||
subpath: VERSION
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=false
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.jovay-sepolia-aldaba-pruned-stripprefix.stripprefix.prefixes=/jovay-sepolia
|
||||
- traefik.http.services.jovay-sepolia-aldaba-pruned.loadbalancer.server.port=18100
|
||||
- ${NO_SSL:-traefik.http.routers.jovay-sepolia-aldaba-pruned.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.jovay-sepolia-aldaba-pruned.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.jovay-sepolia-aldaba-pruned.rule=Host(`$DOMAIN`) && (Path(`/jovay-sepolia`) || Path(`/jovay-sepolia/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.jovay-sepolia-aldaba-pruned.rule=Path(`/jovay-sepolia`) || Path(`/jovay-sepolia/`)}
|
||||
- traefik.http.routers.jovay-sepolia-aldaba-pruned.middlewares=jovay-sepolia-aldaba-pruned-stripprefix, ipallowlist
|
||||
- traefik.http.routers.jovay-sepolia-aldaba-pruned.priority=50 # gets any request that is not GET with UPGRADE header
|
||||
- traefik.http.routers.jovay-sepolia-aldaba-pruned-ws.priority=100 # answers GET requests first
|
||||
- traefik.http.services.jovay-sepolia-aldaba-pruned-ws.loadbalancer.server.port=18200
|
||||
- traefik.http.routers.jovay-sepolia-aldaba-pruned-ws.service=jovay-sepolia-aldaba-pruned-ws
|
||||
- traefik.http.routers.jovay-sepolia-aldaba-pruned.service=jovay-sepolia-aldaba-pruned
|
||||
- ${NO_SSL:-traefik.http.routers.jovay-sepolia-aldaba-pruned-ws.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.jovay-sepolia-aldaba-pruned-ws.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.jovay-sepolia-aldaba-pruned-ws.rule=Host(`$DOMAIN`) && (Path(`/jovay-sepolia`) || Path(`/jovay-sepolia/`)) && HeadersRegexp(`Upgrade`, `(?i)websocket`)}
|
||||
- ${NO_SSL:+traefik.http.routers.jovay-sepolia-aldaba-pruned-ws.rule=(Path(`/jovay-sepolia`) || Path(`/jovay-sepolia/`)) && HeadersRegexp(`Upgrade`, `(?i)websocket`)}
|
||||
- traefik.http.routers.jovay-sepolia-aldaba-pruned-ws.middlewares=jovay-sepolia-aldaba-pruned-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
jovay-sepolia-aldaba-pruned:
|
||||
jovay-sepolia-aldaba-pruned_conf:
|
||||
jovay-sepolia-aldaba-pruned_log:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: jovay-sepolia
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
methods:
|
||||
disabled:
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
Reference in New Issue
Block a user