make pruning versions of the compose file to make pruning possible without modifying the git repo

This commit is contained in:
Sebastian
2024-05-13 09:23:06 +02:00
parent a8c286f820
commit 4d24791dd1
3 changed files with 134 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
version: '3.1'
services:
arbitrum-nitro-fullnode:
image: offchainlabs/nitro-node:${NITRO_VERSION:-v2.3.1-26fad6f}
stop_grace_period: 3m
user: root
volumes:
- 'arbitrum-fullnode_data:/arbitrum-node'
expose:
- 8547
- 8548
command:
- --init.prune=full
- --init.url=https://snapshot.arbitrum.foundation/arb1/nitro-pruned.tar
- --persistent.chain=/arbitrum-node/data/
- --persistent.global-config=/arbitrum-node/
- --parent-chain.connection.url=${ARBITRUM_L1_URL}
- --parent-chain.blob-client.beacon-url=${ARBITRUM_L1_BEACON_URL}
- --chain.id=42161
- --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-stripprefix.stripprefix.prefixes=/arbitrum-fullnode"
- "traefik.http.services.arbitrum.loadbalancer.server.port=8547"
- "traefik.http.routers.arbitrum.entrypoints=websecure"
- "traefik.http.routers.arbitrum.tls.certresolver=myresolver"
- "traefik.http.routers.arbitrum.rule=Host(`$DOMAIN`) && PathPrefix(`/arbitrum-fullnode`)"
- "traefik.http.routers.arbitrum.middlewares=arbitrum-stripprefix, ipwhitelist"
networks:
- chains
volumes:
arbitrum-fullnode_data: