63 lines
2.6 KiB
YAML
63 lines
2.6 KiB
YAML
---
|
|
# use at your own risk
|
|
|
|
services:
|
|
thundercore-zeus:
|
|
image: ${THUNDERCORE_THUNDER_IMAGE:-thundercore/thunder}:${THUNDERCORE_ZEUS_THUNDER_VERSION:-r4.1.3}
|
|
entrypoint: [/sbin/tini, --, /entrypoint.sh, --logToConsole]
|
|
restart: unless-stopped
|
|
user: root
|
|
stop_grace_period: 5m
|
|
networks:
|
|
- chains
|
|
ports:
|
|
- 10645:10645
|
|
- 10645:10645/udp
|
|
expose:
|
|
- 8545
|
|
volumes:
|
|
- ${THUNDERCORE_ZEUS_THUNDER_PRUNED_LEVELDB_HASH_DATA:-thundercore-zeus-thunder-pruned-leveldb-hash}:/datadir
|
|
- .//zeus:/config
|
|
- /slowdisk:/slowdisk
|
|
environment:
|
|
PORT: 10645
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.middlewares.thundercore-zeus-thunder-pruned-leveldb-hash-stripprefix.stripprefix.prefixes=/thundercore-zeus
|
|
- traefik.http.services.thundercore-zeus-thunder-pruned-leveldb-hash.loadbalancer.server.port=8545
|
|
- ${NO_SSL:-traefik.http.routers.thundercore-zeus-thunder-pruned-leveldb-hash.entrypoints=websecure}
|
|
- ${NO_SSL:-traefik.http.routers.thundercore-zeus-thunder-pruned-leveldb-hash.tls.certresolver=myresolver}
|
|
- ${NO_SSL:-traefik.http.routers.thundercore-zeus-thunder-pruned-leveldb-hash.rule=Host(`$DOMAIN`) && PathPrefix(`/thundercore-zeus`)}
|
|
- ${NO_SSL:+traefik.http.routers.thundercore-zeus-thunder-pruned-leveldb-hash.rule=PathPrefix(`/thundercore-zeus`)}
|
|
- traefik.http.routers.thundercore-zeus-thunder-pruned-leveldb-hash.middlewares=thundercore-zeus-thunder-pruned-leveldb-hash-stripprefix, ipwhitelist
|
|
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)
|
|
|
|
volumes:
|
|
thundercore-zeus-thunder-pruned-leveldb-hash:
|
|
|
|
x-upstreams:
|
|
- id: $${ID}
|
|
labels:
|
|
provider: $${PROVIDER}
|
|
chain: thundercore
|
|
method-groups:
|
|
enabled:
|
|
- debug
|
|
- filter
|
|
methods:
|
|
disabled:
|
|
enabled:
|
|
- name: txpool_content # TODO: should be disabled for rollup nodes
|
|
... |