Citrea Node Setup With Docker

Servers :

Contabo : https://bit.ly/contabourl InterServer : https://bit.ly/interserverurl Digital Ocean : https://bit.ly/4cKNFco

Hardware Requirements

  • 8 GB Ram

  • 256 GB SSD (NVMe recommended)

  • 4 core CPU

  • 25+ Mbps network connection

satisfies the minimum requirements to run a Citrea node.

Update :

sudo apt update -y && sudo apt upgrade -y

Install Curl :

sudo apt install -y curl

Install Make :

sudo apt-get -y install make

Install Rust - Cargo :

curl https://sh.rustup.rs -sSf | sh

Type : 1

source "$HOME/.cargo/env"
rustup update
rustup default stable

Install Clang :

sudo apt-get update
sudo apt install make clang pkg-config libssl-dev -y

Install Docker :

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
docker version

Install Docker-Compose :

VER=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d '"' -f 4)
curl -L "https://github.com/docker/compose/releases/download/"$VER"/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --version

Docker Permission to User :

sudo groupadd docker
sudo usermod -aG docker $USER

Set Up Docker Compose :

Attention ! If there is no high space on your server, do the 1st, if there is, do the 2nd!

nano docker-compose.yml

Install Docker Compose Yml :

git clone https://github.com/RPCdotcom/citrea.git
cd citrea

If you have a large space on your server, you can change false to true here. ( OPTIONAL )

nano docker-compose.yml
  • ROLLUP__RUNNER__INCLUDE_TX_BODY=true ROLLUP__RUNNER__INCLUDE_TX_BODY=false

Run Docker Compose :

docker-compose up -d

Last updated