Files
ethereum-rpc-docker/viction/node/viction-testnet-node-pruned-leveldb-hash.yml
Para Dox 8d0cbfc483 fix
2025-04-14 10:08:11 +07:00

85 lines
3.0 KiB
YAML

---
services:
viction-testnet-client:
image: ${VICTION_NODE_IMAGE:-buildonviction/node}:${VICTION_TESTNET_NODE_VERSION:-v2.4.5}
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:
- 12254:12254
- 12254:12254/udp
expose:
- 8545
- 8546
environment:
EXTIP: ${IP}
P2P_PORT: 12254
command:
- --gcmode=full
- --rpcapi=eth,debug,net,db,admin,web3
- --syncmode=full
- --tomox
- --tomox.datadir=/tomochain/data/tomox
restart: unless-stopped
stop_grace_period: 5m
networks:
- chains
volumes:
- ${VICTION_TESTNET_NODE_PRUNED_LEVELDB_HASH_DATA:-viction-testnet-node-pruned-leveldb-hash}:/tomochain/data
- ./viction/testnet:/config
- /slowdisk:/slowdisk
viction-testnet:
image: nginx
environment:
PROXY_HOST: viction-testnet-client
RPC_PATH: ''
RPC_PORT: 8545
WS_PATH: ''
WS_PORT: 8546
restart: unless-stopped
depends_on:
- viction-testnet-client
networks:
- chains
volumes:
- ./nginx-proxy:/etc/nginx/templates
labels:
- traefik.enable=true
- traefik.http.middlewares.viction-testnet-node-pruned-leveldb-hash-stripprefix.stripprefix.prefixes=/viction-testnet
- traefik.http.services.viction-testnet-node-pruned-leveldb-hash.loadbalancer.server.port=80
- ${NO_SSL:-traefik.http.routers.viction-testnet-node-pruned-leveldb-hash.entrypoints=websecure}
- ${NO_SSL:-traefik.http.routers.viction-testnet-node-pruned-leveldb-hash.tls.certresolver=myresolver}
- ${NO_SSL:-traefik.http.routers.viction-testnet-node-pruned-leveldb-hash.rule=Host(`$DOMAIN`) && PathPrefix(`/viction-testnet`)}
- ${NO_SSL:+traefik.http.routers.viction-testnet-node-pruned-leveldb-hash.rule=PathPrefix(`/viction-testnet`)}
- traefik.http.routers.viction-testnet-node-pruned-leveldb-hash.middlewares=viction-testnet-node-pruned-leveldb-hash-stripprefix, ipwhitelist
volumes:
viction-testnet-node-pruned-leveldb-hash:
x-upstreams:
- id: $${ID}
labels:
provider: $${PROVIDER}
chain: viction-testnet
method-groups:
enabled:
- debug
- filter
methods:
disabled:
enabled:
- name: txpool_content # TODO: should be disabled for rollup nodes
...