sudoapt-getinstalldocker-cedocker-ce-clicontainerd.iodocker-buildx-plugindocker-compose-plugin# Test docker is workingsudodockerrunhello-world# Install docker composesudoapt-getupdatesudoapt-getinstalldocker-compose-plugin# Test the docker versiondockercomposeversion
Setup Ronin Node
Make and switch to the working directory for the ronin node
mkdir-p~/ronin/dockercd~/ronin
Make a directory for the chain data
mkdir-pchaindata/data/ronin
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:
# The name of your node that you want displayed on https://ronin-stats.roninchain.com/INSTANCE_NAME=<INSTANCE_NAME># The latest version of the node's image as listed in https://docs.roninchain.com/validators/setup/upgrade-validatorNODE_IMAGE=<NODE_IMAGE># The password used to encrypt the node's private key filePASSWORD=<PASSWORD>MINE=falseNETWORK_ID=2020GASPRICE=20000000000VERBOSITY=3CHAIN_STATS_WS_SECRET=WSyDMrhRBe111CHAIN_STATS_WS_SERVER=ronin-stats-ws.roninchain.comRONIN_PARAMS=--http.apieth,net,web3,consortium--txpool.pricelimit20000000000--txpool.nolocals--cache4096--discovery.dnsenrtree://AIGOFYDZH6BGVVALVJLRPHSOYJ434MPFVVQFXJDXHW5ZYORPTGKUI@nodes.roninchain.com
(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.