> For the complete documentation index, see [llms.txt](https://services.rpcdot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://services.rpcdot.com/citrea/citrea-node-setup-with-docker.md).

# Citrea Node Setup With Docker

<figure><img src="/files/kdxhBZIGfBcAkO3OSit7" alt="" width="200"><figcaption></figcaption></figure>

### Servers :&#x20;

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 :&#x20;

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

### Install Curl :&#x20;

```
sudo apt install -y curl
```

### Install Make :&#x20;

```
sudo apt-get -y install make
```

### Install Rust - Cargo :&#x20;

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

Type : 1

```
source "$HOME/.cargo/env"
```

```
rustup update
```

```
rustup default stable
```

### Install Clang :&#x20;

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

### Install Docker : <a href="#install-docker" id="install-docker"></a>

```
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 :&#x20;

```
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 :&#x20;

```
sudo groupadd docker
```

```
sudo usermod -aG docker $USER
```

### Set Up Docker Compose  :&#x20;

#### 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 : &#x20;

```
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
```
