From 1827e25bb91df9e1e54370ef67a2a1b285eb816d Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sun, 19 May 2024 08:24:45 +0200 Subject: [PATCH] make arbitrum sepolia pruneable --- arbitrum-sepolia-fullnode.prune.yml | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 arbitrum-sepolia-fullnode.prune.yml diff --git a/arbitrum-sepolia-fullnode.prune.yml b/arbitrum-sepolia-fullnode.prune.yml new file mode 100644 index 00000000..046d5347 --- /dev/null +++ b/arbitrum-sepolia-fullnode.prune.yml @@ -0,0 +1,42 @@ +version: '3.1' + +services: + arbitrum-sepolia-fullnode: + image: 'offchainlabs/nitro-node:v2.3.1-26fad6f' + stop_grace_period: 3m + user: root + volumes: + - 'arbitrum-sepolia-fullnode_data:/arbitrum-node' + - './tmp/arbitrum-sepolia-fullnode:/tmp' + expose: + - 8547 # http + ws + command: + - --init.prune=full + - --init.url=https://snapshot.arbitrum.foundation/sepolia/nitro-pruned.tar + - --node.staker.enable=false + - --persistent.chain=/arbitrum-node/data/ + - --persistent.global-config=/arbitrum-node/ + - --parent-chain.connection.url=${ARBITRUM_SEPOLIA_URL} + - --parent-chain.blob-client.beacon-url=${ARBITRUM_SEPOLIA_BEACON_URL} + - --chain.id=421614 + - --http.api=net,web3,eth,debug + - --http.corsdomain=* + - --http.addr=0.0.0.0 + - --http.vhosts=* + - --ws.port=8547 + - --ws.addr=0.0.0.0 + - --ws.origins=* + restart: unless-stopped + labels: + - "traefik.enable=true" + - "traefik.http.middlewares.arbitrum-sepolia-stripprefix.stripprefix.prefixes=/arbitrum-sepolia-fullnode" + - "traefik.http.services.arbitrum-sepolia.loadbalancer.server.port=8547" + - "traefik.http.routers.arbitrum-sepolia.entrypoints=websecure" + - "traefik.http.routers.arbitrum-sepolia.tls.certresolver=myresolver" + - "traefik.http.routers.arbitrum-sepolia.rule=Host(`$DOMAIN`) && PathPrefix(`/arbitrum-sepolia-fullnode`)" + - "traefik.http.routers.arbitrum-sepolia.middlewares=arbitrum-sepolia-stripprefix, ipwhitelist" + networks: + - chains + +volumes: + arbitrum-sepolia-fullnode_data: