How to run a Polygon node
Quick Start: Running a Polygon Node with Erigon
1. Prerequisites Check
2. Configure and Launch Erigon
A. Create the Configuration File
services:
erigon:
image: erigontech/erigon:v3.2.2
container_name: erigon-node
restart: always
command:
# --- Basic Configuration ---
- --chain=bor-mainnet
- --bor.heimdall=https://heimdall-api.polygon.technology
- --http.addr="0.0.0.0"
- --http.api=eth,web3,net,debug,trace,txpool
# --- Performance Tweaks ---
- --torrent.download.rate=512mb
# --- Sync Mode (Optional) ---
# To change Sync Mode, uncomment the line below:
# - --prune.mode=archive
# or
# - --prune.mode=minimal
ports:
- "8545:8545" # Exposes the RPC port (needed for wallets/dApps)
volumes:
# *** IMPORTANT: CHANGE THIS PATH! ***
# Replace the path below with an actual directory on your machine
# where you want the blockchain data stored (e.g., /mnt/ssd/erigon-data)
- /path/to/erigon/data:/var/lib/erigonB. Launch the Node and Monitor Progress
Flag explanation
Last updated
Was this helpful?