83 lines
3.0 KiB
YAML
83 lines
3.0 KiB
YAML
---
|
|
# use at your own risk
|
|
|
|
services:
|
|
fantom-testnet-archive:
|
|
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
|
|
build:
|
|
context: ./fantom
|
|
dockerfile: opera.Dockerfile
|
|
args:
|
|
VERSION: v1.1.3-rc.5
|
|
REPO: https://github.com/Fantom-foundation/go-opera.git
|
|
user: root
|
|
ports:
|
|
- 10196:10196
|
|
- 10196:10196/udp
|
|
expose:
|
|
- 8545
|
|
- 8551
|
|
environment:
|
|
- GENESIS=https://download.fantom.network/opera/testnet/testnet-2458-full-mpt.g
|
|
command:
|
|
- --cache=${FANTOM_TESTNET_OPERA_ARCHIVE_CACHE_MB:-16000}
|
|
- --datadir=/datadir
|
|
- --db.migration.mode reformat
|
|
- --db.preset pbl-1
|
|
- --http
|
|
- --http.addr=0.0.0.0
|
|
- --http.api=admin,debug,web3,eth,dag,txpool,personal,abft,net,trace,ftm,sfc
|
|
- --http.port=8545
|
|
- --nat=extip:${IP}
|
|
- --port=10196
|
|
- --rpc.gascap=600000000
|
|
- --rpc.txfeecap=0
|
|
- --syncmode full
|
|
- --ws
|
|
- --ws.port=8545
|
|
restart: unless-stopped
|
|
stop_grace_period: 5m
|
|
networks:
|
|
- chains
|
|
volumes:
|
|
- ${FANTOM_TESTNET_OPERA_ARCHIVE_DATA:-fantom-testnet-opera-archive}:/datadir
|
|
- /slowdisk:/slowdisk
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.middlewares.fantom-testnet-opera-archive-stripprefix.stripprefix.prefixes=/fantom-testnet-archive
|
|
- traefik.http.services.fantom-testnet-opera-archive.loadbalancer.server.port=8545
|
|
- ${NO_SSL:-traefik.http.routers.fantom-testnet-opera-archive.entrypoints=websecure}
|
|
- ${NO_SSL:-traefik.http.routers.fantom-testnet-opera-archive.tls.certresolver=myresolver}
|
|
- ${NO_SSL:-traefik.http.routers.fantom-testnet-opera-archive.rule=Host(`$DOMAIN`) && PathPrefix(`/fantom-testnet-archive`)}
|
|
- ${NO_SSL:+traefik.http.routers.fantom-testnet-opera-archive.rule=PathPrefix(`/fantom-testnet-archive`)}
|
|
- traefik.http.routers.fantom-testnet-opera-archive.middlewares=fantom-testnet-opera-archive-stripprefix, ipwhitelist
|
|
ulimits:
|
|
nofile: 1048576 # Max open files (for RPC/WS connections)
|
|
|
|
volumes:
|
|
fantom-testnet-opera-archive:
|
|
|
|
x-upstreams:
|
|
- id: $${ID}
|
|
labels:
|
|
provider: $${PROVIDER}
|
|
chain: fantom-testnet
|
|
method-groups:
|
|
enabled:
|
|
- debug
|
|
- filter
|
|
methods:
|
|
disabled:
|
|
enabled:
|
|
- name: txpool_content # TODO: should be disabled for rollup nodes
|
|
... |