🐳Docker

Author [godwin]

System Requirements

CPU

OS

RAM

DISK

8 cores+

Ubuntu 24.04

32GB+

>= 1.2TB

The Ronin Mainnet archive node has a size of 1.2TB on November 14th, 2024

Last updated at: 14th November 2024

Official docs - https://docs.roninchain.com/rpc/mainnet-rpc

Pre-Requisites

First, update, upgrade, and clean the system:

sudo apt update -y && sudo apt upgrade -y && sudo apt auto-remove -y
sudo apt install ufw -y

Configure Firewall Settings

sudo ufw default deny incoming
sudo ufw default allow outgoing

sudo ufw allow 22/tcp
sudo ufw allow 80
sudo ufw allow 443
sudo ufw allow 8545
sudo ufw allow 8546
sudo ufw allow 30303
sudo ufw allow 6060

Install Docker

Run this command to remove any conflicting docker

Add Docker's official GPG key:

Add the repository to ppt sources:

Install docker

Setup Ronin Node

Make and switch to the working directory for the ronin node

Make a directory for the chain data

Go into the docker directory, create a docker-compose.yml file with the following configuration:

This compose file defines the node service that pulls a Ronin node image from the GitHub Container Registry.

Create an .env file and add the following content, replacing the <...> placeholder values with your information:

(Optional) Download the snapshot from the ronin-snapshot repo - If you want to sync the ronin chain data in time and not wait for weeks before it is fully synced.

Run the node

Monitor the node

Use docker logs to monitor the rootstock node. The -f flag ensures you are following the log output.

You should see a response similar to this once your node starts syncing

Query the node

To get the web3 client version

Output

To check the block number

Output

References

Last updated

Was this helpful?