71 lines
2.5 KiB
YAML
71 lines
2.5 KiB
YAML
version: '3.1'
|
|
|
|
services:
|
|
arbitrum-nitro:
|
|
image: 'offchainlabs/nitro-node:v2.0.10-rc.1-687c381-slim-amd64'
|
|
restart: always
|
|
stop_grace_period: 30s
|
|
user: root
|
|
volumes:
|
|
- 'arbitrum-archive_data:/arbitrum-node'
|
|
expose:
|
|
- 8547
|
|
- 8548
|
|
command:
|
|
- --init.url=https://snapshot.arbitrum.io/mainnet/nitro.tar
|
|
- --node.caching.archive
|
|
- --persistent.chain=/arbitrum-node/data/
|
|
- --persistent.global-config=/arbitrum-node/
|
|
- --node.rpc.classic-redirect=http://arbitrum-classic:8547/
|
|
- --l1.url=${ARBITRUM_L1_URL}
|
|
- --l2.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"
|
|
- "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`)"
|
|
- "traefik.http.routers.arbitrum.middlewares=arbitrum-stripprefix, ipwhitelist"
|
|
networks:
|
|
- chains
|
|
|
|
arbitrum-classic:
|
|
image: 'offchainlabs/arb-node:v1.4.5-e97c1a4'
|
|
restart: always
|
|
stop_grace_period: 30s
|
|
user: root
|
|
volumes:
|
|
- 'arbitrum-classic-archive_data:/root/.arbitrum/mainnet'
|
|
- './arbitrum/classic-entrypoint.sh:/entrypoint.sh'
|
|
expose:
|
|
- 8547
|
|
- 8548
|
|
entrypoint: ["/bin/bash", "/entrypoint.sh"]
|
|
command:
|
|
- --l1.url=${ARBITRUM_L1_URL}
|
|
- --l2.disable-upstream
|
|
- --node.chain-id=42161
|
|
- --node.rpc.tracing.enable
|
|
- --node.rpc.tracing.namespace=trace
|
|
- --core.checkpoint-pruning-mode=off
|
|
- --node.cache.allow-slow-lookup
|
|
- --core.checkpoint-gas-frequency=156250000
|
|
- --node.rpc.addr=0.0.0.0
|
|
restart: unless-stopped
|
|
networks:
|
|
- chains
|
|
|
|
|
|
volumes:
|
|
arbitrum-archive_data:
|
|
arbitrum-classic-archive_data:
|