From 2b633e5aa894d1dc4158d128c69e142a914bbe9e Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sun, 22 Oct 2023 03:12:47 +0200 Subject: [PATCH] nethermind sucks --- geth-holesky.yml | 94 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 geth-holesky.yml diff --git a/geth-holesky.yml b/geth-holesky.yml new file mode 100644 index 00000000..19e05ebe --- /dev/null +++ b/geth-holesky.yml @@ -0,0 +1,94 @@ +version: '3.1' + +services: + geth-holesky: + image: ethereum/client-go:v1.13.4 + expose: + # HTTP server / GraphQL API + - 8545 + ports: + - "29568:29568" + - "29568:29568/udp" + command: + [ + # Blockchain sync mode ("snap", "full" or "light") + "--syncmode=snap", + "--port=29568", + # Megabytes of memory allocated to internal caching + "--cache=8192", + # Enable the WS-RPC server + "--ws", + "--ws.port=8545", + "--ws.addr=0.0.0.0", + # Enable the HTTP-RPC server + "--http", + "--http.port=8545", + "--http.addr=0.0.0.0", + "--http.vhosts=*", + # Enable GraphQL on the HTTP-RPC server. Note that GraphQL can only be started if an HTTP server is started as well. + "--graphql", + "--graphql.vhosts=*", + # Enable metrics collection and reporting + "--metrics", + "--metrics.addr=0.0.0.0", + # Ethereum holesky + "--holesky", + # Maximum number of network peers (network disabled if set to 0) (default: 50) + "--maxpeers=30", + # The Merge + "--authrpc.jwtsecret=/jwtsecret", + "--authrpc.addr=0.0.0.0", + "--authrpc.vhosts=*" + ] + networks: + - chains + volumes: + - "geth-holesky_data:/root/.ethereum" + - ".jwtsecret:/jwtsecret" + restart: unless-stopped + stop_grace_period: 1m + labels: + - "traefik.enable=true" + - "traefik.http.middlewares.holesky-stripprefix.stripprefix.prefixes=/holesky" + - "traefik.http.services.holesky.loadbalancer.server.port=8545" + - "traefik.http.routers.holesky.entrypoints=websecure" + - "traefik.http.routers.holesky.tls.certresolver=myresolver" + - "traefik.http.routers.holesky.rule=Host(`$DOMAIN`) && PathPrefix(`/holesky`)" + - "traefik.http.routers.holesky.middlewares=holesky-stripprefix, ipwhitelist" + - "prometheus-scrape.enabled=true" + - "prometheus-scrape.port=6060" + - "prometheus-scrape.job_name=geth-holesky" + - "prometheus-scrape.metrics_path=/debug/metrics/prometheus" + + prysm-holesky: + image: prysmaticlabs/prysm-beacon-chain:v4.1.0 + expose: + - 24638 + ports: + #- "127.0.0.1:3500:3500" + - "24638:24638" + - "24638:24638/udp" + command: + [ + "--datadir=/data", + "--jwt-secret=/jwtsecret", + "--rpc-host=0.0.0.0", + "--grpc-gateway-host=0.0.0.0", + "--monitoring-host=0.0.0.0", + "--p2p-tcp-port=24638", + "--p2p-udp-port=24638", + "--checkpoint-sync-url=https://beaconstate-holesky.chainsafe.io", + "--execution-endpoint=http://geth-holesky:8551", + "--accept-terms-of-use" + ] + networks: + - chains + volumes: + - "prysm-holesky_data:/data" + - ".jwtsecret:/jwtsecret" + restart: unless-stopped + stop_grace_period: 1m + +volumes: + prysm-holesky_data: + geth-holesky_data: