From 6451e6bab8eaccb571c88d7770be284ba35a8db6 Mon Sep 17 00:00:00 2001 From: cventastic Date: Sun, 27 Nov 2022 09:32:34 +0100 Subject: [PATCH] add --- README.md | 11 +++---- xdai.yml | 87 +++++++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 76 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 1265826a..4ef433f1 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,11 @@ ### Docs -.envs: +erigon.yml +xdai.yml +xdai-archive.yml -xdai: -``` -XDAI_RPC_URL=http://xdai-archive:8545 -PUBLIC_IP= -TARGET_PEERS=80 -``` +all need a .jwtsecret file inside POKT_DOKT folder TODO: diff --git a/xdai.yml b/xdai.yml index b837d284..bff8cb74 100644 --- a/xdai.yml +++ b/xdai.yml @@ -1,22 +1,39 @@ version: '3.1' services: - xdai: - image: nethermind/nethermind:1.12.7 - expose: - - "8545" - - "40444" - ports: - - "40444:40444" - - "40444:40444/udp" - volumes: - - xdai:/nethermind_db/xdai - - ./xdai/xdai.cfg:/xdai.cfg - - ./xdai/xdai.json:/xdai.json + xdai_execution: + container_name: xdai_execution + image: nethermind/nethermind:latest + restart: unless-stopped + stop_grace_period: 1m networks: - chains - command: "--config /xdai.cfg" - restart: unless-stopped + ports: + - 30304:30304/tcp # p2p + - 30304:30304/udp # p2p + expose: + - 8545 # rpc + - 8551 # engine api + volumes: + - xdai_execution:/data + - .jwtsecret:/jwt.hex + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + command: | + --config=xdai + --datadir=/data + --log=INFO + --Sync.SnapSync=false + --JsonRpc.Enabled=true + --JsonRpc.Host=0.0.0.0 + --JsonRpc.Port=8545 + --JsonRpc.EnabledModules=[Web3,Eth,Subscribe,Net,] + --JsonRpc.JwtSecretFile=/jwt.hex + --JsonRpc.EngineHost=0.0.0.0 + --JsonRpc.EnginePort=8551 + --Network.DiscoveryPort=30304 + --HealthChecks.Enabled=false + --Pruning.CacheMb=2048 labels: - "traefik.enable=true" - "traefik.http.middlewares.xdai-stripprefix.stripprefix.prefixes=/xdai" @@ -26,5 +43,45 @@ services: - "traefik.http.routers.xdai.rule=Host(`$DOMAIN`) && PathPrefix(`/xdai`)" - "traefik.http.routers.xdai.middlewares=xdai-stripprefix, ipwhitelist" + xdai_consensus: + container_name: xdai_consensus + image: sigp/lighthouse:latest-modern + restart: unless-stopped + networks: + - chains + ports: + - 9001:9001/tcp # p2p + - 9001:9001/udp # p2p + expose: + - 5054 # metrics + - 4000 # http + volumes: + - xdai_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=9001 + --http + --http-address=0.0.0.0 + --http-port=4000 + --target-peers=50 + --execution-endpoint=http://xdai_execution: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://checkpoint.gnosischain.com/ + volumes: - xdai: \ No newline at end of file + xdai_execution: + xdai_consensus: \ No newline at end of file