From 82cb2bdbdef6fa96c393ff7943bd8b63ee423f37 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Fri, 9 Dec 2022 17:23:39 +0100 Subject: [PATCH] add nethermind mainnet configuration --- nethermind-mainnet.yml | 109 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 nethermind-mainnet.yml diff --git a/nethermind-mainnet.yml b/nethermind-mainnet.yml new file mode 100644 index 00000000..cd06f61c --- /dev/null +++ b/nethermind-mainnet.yml @@ -0,0 +1,109 @@ +version: '3.1' + +services: + nethermind-mainnet: + image: nethermindeth/nethermind:latest + restart: always + stop_grace_period: 1m + command: | + --JsonRpc.Enabled=true + --JsonRpc.Host=0.0.0.0 + --JsonRpc.JwtSecretFile=/jwt.hex + --JsonRpc.EngineHost=0.0.0.0 + --JsonRpc.EnginePort=8551 + --Metrics.Enabled=true + --TraceStore.Enabled=true + --TraceStore.BlocksToKeep=0 + --TraceStore.TraceTypes=Trace,Rewards + --Sync.FastSync=false + ports: + - '34896:34896/tcp' # p2p + - '34896:34896/udp' # p2p + networks: + - chains + volumes: + - nethermind_mainnet_db:/nethermind/nethermind_db + - nethermind_mainnet_keystore:/nethermind/keystore + - nethermind_mainnet_logs:/nethermind/logs + - .jwtsecret:/jwt.hex + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + environment: + - NETHERMIND_CONFIG=xdai_archive + - NETHERMIND_JSONRPCCONFIG_ENGINEENABLEDMODULES=[Eth,AccountAbstraction,Subscribe,TxPool,Web3,Personal,Proof,Net,Parity,Health] + - NETHERMIND_METRICSCONFIG_EXPOSEPORT=9091 + - NETHERMIND_NETWORKCONFIG_P2PPORT=34896 + - NETHERMIND_NETWORKCONFIG_MAXACTIVEPEERS=150 + logging: + options: + max-size: "1000m" + labels: + - "traefik.enable=true" + - "traefik.http.middlewares.nethermind-mainnet-stripprefix.stripprefix.prefixes=/nethermind-mainnet" + - "traefik.http.services.nethermind-mainnet.loadbalancer.server.port=8545" + - "traefik.http.routers.nethermind-mainnet.entrypoints=websecure" + - "traefik.http.routers.nethermind-mainnet.tls.certresolver=myresolver" + - "traefik.http.routers.nethermind-mainnet.rule=Host(`$DOMAIN`) && PathPrefix(`/nethermind-mainnet`)" + - "traefik.http.routers.nethermind-mainnet.middlewares=xdai-archive-stripprefix, ipwhitelist" + - "prometheus-scrape.enabled=true" + - "prometheus-scrape.port=9091" + - "prometheus-scrape.job_name=nethermind-mainnet" + + + lighthouse-mainnet: + image: sigp/lighthouse:latest-modern + restart: unless-stopped + networks: + - chains + ports: + - 46763:46763/tcp # p2p + - 46763:46763/udp # p2p + expose: + - 5054 # metrics + - 4000 # http + - 46763 # p2p + volumes: + - mainnet_consensus:/data + - .jwtsecret:/jwt.hex + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + command: | + lighthouse + beacon_node + --network=gnosis + --disable-upnp + --datadir=/data + --port=46763 + --http + --http-address=0.0.0.0 + --http-port=4000 + --target-peers=50 + --execution-endpoint=http://nethermind-mainnet:8551 + --execution-jwt=/jwt.hex + --debug-level=info + --validator-monitor-auto + --subscribe-all-subnets + --import-all-attestations + --metrics + --metrics-port=5054 + --metrics-address=0.0.0.0 + --checkpoint-sync-url=https://mainnet-checkpoint-sync.attestant.io + labels: + - "prometheus-scrape.enabled=true" + - "prometheus-scrape.port=5054" + - "prometheus-scrape.job_name=lighthouse-gnosis" + - "prometheus-scrape.metrics_path=/metrics" + - "traefik.enable=true" + - "traefik.http.middlewares.lighthouse-gnosis-stripprefix.stripprefix.prefixes=/lighthouse-mainnet" + - "traefik.http.services.lighthouse-mainnet.loadbalancer.server.port=4000" + - "traefik.http.routers.lighthouse-mainnet.entrypoints=websecure" + - "traefik.http.routers.lighthouse-mainnet.tls.certresolver=myresolver" + - "traefik.http.routers.lighthouse-mainnet.rule=Host(`$DOMAIN`) && PathPrefix(`/lighthouse-mainnet`)" + - "traefik.http.routers.lighthouse-mainnet.middlewares=lighthouse-mainnet-stripprefix, ipwhitelist" + + +volumes: + nethermind_mainnet_db: + nethermind_mainnet_keystore: + nethermind_mainnet_logs: + mainnet_consensus: