githubEdit

🐳Docker

Authors: [ Ankur | Dapplooker]

System Requirements

CPU
OS
RAM
DISK

8 vCPU

Ubuntu 22.04

16 GB

10+ TB (SSD)

circle-check

Pre-requisite

Before starting, clean the setup then update and upgrade. Install following:

  • Docker

  • Git

  • Go v1.23+

  • aria2 (optional)

Commands

sudo apt update -y && sudo apt upgrade -y && sudo apt auto-remove -y
sudo apt install docker.io git ufw -y jq -y aria2 -y

Firewall Settings

Check status & enable UFW

Set explicit default UFW rules

Allow SSH, HTTP, and HTTPS

Allow Remote connection

Setup Instructions

Clone the ZkSync Era Repository

Download Snapshot

circle-info

To download the Latest Snapshot visit https://en-backups.matterlabs.devarrow-up-right and copy the desired link. Run the below command in screen as the download may take hours/day depending upon internet speed & snapshot size.

Start ZkSync Node

Example docker-compose file

Import Database

circle-exclamation

Perform Database Migration

Restart the Containers

Monitoring

Monitor Logs of Docker Container

Sync Status

  • Syncing status :

Response should look like:

  • Latest synchronized L2 block :

Response should look like:

References

Last updated

Was this helpful?