🐳Docker
Last updated
Was this helpful?
Was this helpful?
iptables -I DOCKER-USER -p tcp --dport 8545 -j DROPiptables -I DOCKER-USER -p tcp --dport 8545 -s $YOURIP$ -j ACCEPTnano docker-compose.ymlversion: "3.1"
services:
scroll:
container_name: scroll
image: scrolltech/l2geth:scroll-v5.1.10
restart: unless-stopped
volumes:
- scroll:/scroll-datadir
ports:
- 8545:8545
command: |
--scroll
--datadir "./scroll-datadir"
--gcmode archive
--syncmode full
--cache.noprefetch
--http
--http.corsdomain "*"
--http.vhosts "*"
--http.addr "0.0.0.0"
--http.port 8545
--http.api "eth,net,web3,debug,scroll"
--l1.endpoint "https://eth.llamarpc.com"
--rollup.verify
--l1.confirmations finalized
--verbosity=3
--metrics
--metrics.addr "0.0.0.0"
--metrics.port 6060
--maxpeers 100
--nat "extip:0.0.0.0"
--port 30303
volumes:
scroll:docker compose up -d docker logs -f scrollcurl -H "Content-type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' $YOURIP$:8545
curl -H "Content-type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"scroll_syncStatus","params":[],"id":1}' $YOURIP$:8545