From b00a13498c9c3bf19a2b166e09083038acf6a5e2 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:37:30 +0200 Subject: [PATCH] update and chiado --- nethermind-gnosis-chiado.yml | 112 +++++++++++++++++++++++++++++++++++ nethermind-gnosis.yml | 2 +- 2 files changed, 113 insertions(+), 1 deletion(-) create mode 100644 nethermind-gnosis-chiado.yml diff --git a/nethermind-gnosis-chiado.yml b/nethermind-gnosis-chiado.yml new file mode 100644 index 00000000..3202fb52 --- /dev/null +++ b/nethermind-gnosis-chiado.yml @@ -0,0 +1,112 @@ +version: '3.1' + +services: + + nethermind-gnosis-chiado: + image: nethermind/nethermind:1.27.0 + user: root + volumes: + - "gnosis-chiado-nethermind-fullnode:/data" + - .jwtsecret:/jwtsecret + expose: + - "1550" + - "9090" + - "8545" + - "8551" + ports: + - "1550:1550" + - "1550:1550/udp" + restart: unless-stopped + environment: + #- "NETHERMIND_SYNCCONFIG_NONVALIDATORNODE=true" + ##- "NETHERMIND_SYNCCONFIG_PIVOTHASH=0x4d2eedcf61a0b19ca46b6f944e732ef6baef71b9e879912a6ae122a7c4c2bd17" + ##- "NETHERMIND_SYNCCONFIG_PIVOTNUMBER=32299602" + - "NETHERMIND_SYNCCONFIG_FASTSYNC=true" + #- "NETHERMIND_SYNCCONFIG_DOWNLOADRECEIPTSINFASTSYNC=false" + #- "NETHERMIND_SYNCCONFIG_DOWNLOADBODIESINFASTSYNC=false" + #- "NETHERMIND_SYNCCONFIG_DOWNLOADHEADERSINFASTSYNC=false" + command: | + --config=chiado + --datadir=/data + --log=INFO + --JsonRpc.Enabled=true + --JsonRpc.Host=0.0.0.0 + --JsonRpc.Port=8545 + --JsonRpc.EnabledModules=[Web3,Eth,Subscribe,Net] + --JsonRpc.JwtSecretFile=/jwtsecret + --JsonRpc.EngineHost=0.0.0.0 + --JsonRpc.EnginePort=8551 + --Network.DiscoveryPort=1550 + --HealthChecks.Enabled=false + --Pruning.CacheMb=2048 + stop_grace_period: 3m + labels: + - "prometheus-scrape.enabled=true" + - "prometheus-scrape.port=6060" + - "prometheus-scrape.job_name=nethermind" + - "prometheus-scrape.metrics_path=/debug/metrics/prometheus" + - "traefik.enable=true" + - "traefik.http.middlewares.nethermind-gnosis-chiado-stripprefix.stripprefix.prefixes=/gnosis-chiado" + - "traefik.http.services.nethermind-gnosis-chiado.loadbalancer.server.port=8545" + - "traefik.http.routers.nethermind-gnosis-chiado.entrypoints=websecure" + - "traefik.http.routers.nethermind-gnosis-chiado.tls.certresolver=myresolver" + - "traefik.http.routers.nethermind-gnosis-chiado.rule=Host(`$DOMAIN`) && PathPrefix(`/gnosis-chiado`)" + - "traefik.http.routers.nethermind-gnosis-chiado.middlewares=nethermind-gnosis-chiado-stripprefix, ipwhitelist" + networks: + - chains + logging: + options: + max-file: '1' + compress: 'false' + driver: local + + + nimbus-gnosis-chiado: + build: + context: ./gnosis/nimbus + restart: unless-stopped + stop_grace_period: 1m + user: root + volumes: + - nimbus-gnosis-chiado:/data + - .jwtsecret:/jwt:ro + environment: + CHECKPOINT_SYNC_URL: "https://checkpoint.chiadochain.net/" + command: | + --data-dir=/data + --web3-url=http://nethermind-gnosis-chiado:8551 + --jwt-secret=/jwt + --light-client-data-serve=true + --light-client-data-import-mode=full + --tcp-port=54356 + --udp-port=54356 + --rest + --rest-address=0.0.0.0 + --network=chiado + --history=prune + networks: + - chains + ports: + - 54356:54356/tcp # p2p + - 54356:54356/udp # p2p + expose: + - 8008 # metrics + - 4500 # http + - 54356 # p2p + labels: + - "prometheus-scrape.enabled=true" + - "prometheus-scrape.port=8008" + - "prometheus-scrape.job_name=nimbus-gnosis-chiado" + - "prometheus-scrape.metrics_path=/metrics" + - "traefik.enable=true" + - "traefik.http.middlewares.nimbus-gnosis-chiado-stripprefix.stripprefix.prefixes=/nimbus-gnosis-chiado" + - "traefik.http.services.nimbus-gnosis-chiado.loadbalancer.server.port=4500" + - "traefik.http.routers.nimbus-gnosis-chiado.entrypoints=websecure" + - "traefik.http.routers.nimbus-gnosis-chiado.tls.certresolver=myresolver" + - "traefik.http.routers.nimbus-gnosis-chiado.rule=Host(`$DOMAIN`) && PathPrefix(`/nimbus-gnosis-chiado`)" + - "traefik.http.routers.nimbus-gnosis-chiado.middlewares=nimbus-gnosis-chiado-stripprefix, ipwhitelist" + + +volumes: + gnosis-chiado-nethermind-fullnode: + nimbus-gnosis-chiado: diff --git a/nethermind-gnosis.yml b/nethermind-gnosis.yml index e808f92c..186edc55 100644 --- a/nethermind-gnosis.yml +++ b/nethermind-gnosis.yml @@ -3,7 +3,7 @@ version: '3.1' services: nethermind-gnosis: - image: nethermind/nethermind:1.26.0 + image: nethermind/nethermind:1.27.0 user: root volumes: - "gnosis-nethermind-fullnode:/data"