new network
This commit is contained in:
112
wemix/go-wemix/wemix-mainnet-go-wemix-archive-leveldb-hash.yml
Normal file
112
wemix/go-wemix/wemix-mainnet-go-wemix-archive-leveldb-hash.yml
Normal file
@@ -0,0 +1,112 @@
|
||||
---
|
||||
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:wemix/go-wemix/wemix-mainnet-go-wemix-archive-leveldb-hash.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/wemix-mainnet-archive \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
wemix-mainnet-archive:
|
||||
image: ${WEMIX_GO_WEMIX_IMAGE:-darindoang/go-wemix}:${WEMIX_MAINNET_GO_WEMIX_VERSION:-v0.10.10}
|
||||
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:
|
||||
- 11897:11897
|
||||
- 11897:11897/udp
|
||||
expose:
|
||||
- 8545
|
||||
command:
|
||||
- --datadir=/root/.wemix
|
||||
- --db.engine=
|
||||
- --gcmode=archive
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=eth,net,web3,debug,admin,txpool
|
||||
- --http.port=8545
|
||||
- --nat=extip:${IP}
|
||||
- --port=11897
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.txfeecap=0
|
||||
- --state.scheme=
|
||||
- --syncmode=full
|
||||
- --ws
|
||||
- --ws.port=8545
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${WEMIX_MAINNET_GO_WEMIX_ARCHIVE_LEVELDB_HASH_DATA:-wemix-mainnet-go-wemix-archive-leveldb-hash}:/root/.wemix
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=false
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.wemix-mainnet-go-wemix-archive-leveldb-hash-stripprefix.stripprefix.prefixes=/wemix-mainnet-archive
|
||||
- traefik.http.services.wemix-mainnet-go-wemix-archive-leveldb-hash.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.wemix-mainnet-go-wemix-archive-leveldb-hash.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.wemix-mainnet-go-wemix-archive-leveldb-hash.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.wemix-mainnet-go-wemix-archive-leveldb-hash.rule=Host(`$DOMAIN`) && (Path(`/wemix-mainnet-archive`) || Path(`/wemix-mainnet-archive/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.wemix-mainnet-go-wemix-archive-leveldb-hash.rule=Path(`/wemix-mainnet-archive`) || Path(`/wemix-mainnet-archive/`)}
|
||||
- traefik.http.routers.wemix-mainnet-go-wemix-archive-leveldb-hash.middlewares=wemix-mainnet-go-wemix-archive-leveldb-hash-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
wemix-mainnet-go-wemix-archive-leveldb-hash:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: wemix
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
methods:
|
||||
disabled:
|
||||
enabled:
|
||||
- name: txpool_content # TODO: should be disabled for rollup nodes
|
||||
...
|
||||
112
wemix/go-wemix/wemix-mainnet-go-wemix-pruned-pebble-path.yml
Normal file
112
wemix/go-wemix/wemix-mainnet-go-wemix-pruned-pebble-path.yml
Normal file
@@ -0,0 +1,112 @@
|
||||
---
|
||||
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:wemix/go-wemix/wemix-mainnet-go-wemix-pruned-pebble-path.yml
|
||||
#
|
||||
# docker compose up -d
|
||||
#
|
||||
# curl -X POST https://${IP}.traefik.me/wemix-mainnet \
|
||||
# -H "Content-Type: application/json" \
|
||||
# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||
|
||||
services:
|
||||
wemix-mainnet:
|
||||
image: ${WEMIX_GO_WEMIX_IMAGE:-darindoang/go-wemix}:${WEMIX_MAINNET_GO_WEMIX_VERSION:-v0.10.10}
|
||||
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:
|
||||
- 11908:11908
|
||||
- 11908:11908/udp
|
||||
expose:
|
||||
- 8545
|
||||
command:
|
||||
- --datadir=/root/.wemix
|
||||
- --db.engine=
|
||||
- --gcmode=full
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=eth,net,web3,debug,admin,txpool
|
||||
- --http.port=8545
|
||||
- --nat=extip:${IP}
|
||||
- --port=11908
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.txfeecap=0
|
||||
- --state.scheme=
|
||||
- --syncmode=full
|
||||
- --ws
|
||||
- --ws.port=8545
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
networks:
|
||||
- chains
|
||||
volumes:
|
||||
- ${WEMIX_MAINNET_GO_WEMIX_PRUNED_PEBBLE_PATH_DATA:-wemix-mainnet-go-wemix-pruned-pebble-path}:/root/.wemix
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
- prometheus-scrape.enabled=false
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.wemix-mainnet-go-wemix-pruned-pebble-path-stripprefix.stripprefix.prefixes=/wemix-mainnet
|
||||
- traefik.http.services.wemix-mainnet-go-wemix-pruned-pebble-path.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.wemix-mainnet-go-wemix-pruned-pebble-path.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.wemix-mainnet-go-wemix-pruned-pebble-path.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.wemix-mainnet-go-wemix-pruned-pebble-path.rule=Host(`$DOMAIN`) && (Path(`/wemix-mainnet`) || Path(`/wemix-mainnet/`))}
|
||||
- ${NO_SSL:+traefik.http.routers.wemix-mainnet-go-wemix-pruned-pebble-path.rule=Path(`/wemix-mainnet`) || Path(`/wemix-mainnet/`)}
|
||||
- traefik.http.routers.wemix-mainnet-go-wemix-pruned-pebble-path.middlewares=wemix-mainnet-go-wemix-pruned-pebble-path-stripprefix, ipallowlist
|
||||
|
||||
volumes:
|
||||
wemix-mainnet-go-wemix-pruned-pebble-path:
|
||||
|
||||
x-upstreams:
|
||||
- id: $${ID}
|
||||
labels:
|
||||
provider: $${PROVIDER}
|
||||
connection:
|
||||
generic:
|
||||
rpc:
|
||||
url: $${RPC_URL}
|
||||
ws:
|
||||
frameSize: 20Mb
|
||||
msgSize: 50Mb
|
||||
url: $${WS_URL}
|
||||
chain: wemix
|
||||
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