← cd ../blog
cat@blockchain/setup-reth-client

Running a full Ethereum node with Reth + Lighthouse

A step-by-step guide to deploying a Rust-based Ethereum execution client paired with Lighthouse consensus using Docker Compose.

blockchaindev-ops
BashDocker
4 min read

Why Reth?

Reth is a modern Ethereum execution client written in Rust by Paradigm. Compared to Geth it offers significantly faster sync times, lower memory footprint, and a cleaner codebase that's easier to audit. Paired with Lighthouse as the consensus client, you get a fully open-source, Rust-native node stack.

Running your own node means you don't rely on third-party RPC providers like Alchemy or Infura. You can submit transactions, query state, and run validators with full sovereignty.

Prerequisites

Before starting, make sure you have:

Install Docker

sudo apt update
sudo apt install -y ca-certificates curl gnupg
Bash
# Add Docker's official GPG key
sudo install -m 0755 -d /usr/share/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg \
  | sudo gpg --dearmor -o /usr/share/keyrings/docker.gpg
Bash
# Add the repository
. /etc/os-release
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker.gpg] \
  https://download.docker.com/linux/ubuntu $VERSION_CODENAME stable" \
  | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Bash
# Install
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo usermod -aG docker $USER && newgrp docker
Bash

Using the official Docker repo instead of docker.io from apt ensures you get the latest stable release with Compose v2 included.

Verify

docker --version
docker compose version
Bash

Project structure

mkdir -p ~/reth-node && cd ~/reth-node
Bash

Everything will live under this directory:

reth-node/
├── docker-compose.yml
├── secrets/
│   └── jwt.hex          # shared auth secret between EL and CL
└── data/
    ├── reth/            # execution client chaindata
    └── lighthouse/      # consensus client state
Bash

Generate the JWT secret

The Engine API — the channel between the execution client (Reth) and the consensus client (Lighthouse) — requires mutual authentication via a shared JWT secret. Without it, the two clients won't talk to each other.

mkdir -p ./secrets
openssl rand -hex 32 > ./secrets/jwt.hex
chmod 600 ./secrets/jwt.hex
Bash

Both containers will mount this file as read-only at /jwt.hex.

Docker Compose

services:
  reth:
    image: ghcr.io/paradigmxyz/reth:latest
    container_name: reth
    restart: unless-stopped
    volumes:
      - ./data/reth:/data
      - ./secrets/jwt.hex:/jwt.hex:ro
    ports:
      - "8545:8545"   # HTTP JSON-RPC
      - "8551:8551"   # Engine API (CL ↔ EL)
    command: >
      node
      --chain mainnet
      --datadir /data
      --authrpc.jwtsecret /jwt.hex
      --authrpc.addr 0.0.0.0
      --authrpc.port 8551
      --http
      --http.addr 0.0.0.0
      --http.port 8545
      --http.api eth,net,web3

  lighthouse:
    image: sigp/lighthouse:latest
    container_name: lighthouse
    restart: unless-stopped
    depends_on:
      - reth
    volumes:
      - ./data/lighthouse:/root/.lighthouse
      - ./secrets/jwt.hex:/jwt.hex:ro
    ports:
      - "9000:9000/tcp"
      - "9000:9000/udp"   # P2P discovery
    command: >
      lighthouse bn
      --network mainnet
      --execution-endpoint http://reth:8551
      --execution-jwt /jwt.hex
      --checkpoint-sync-url https://mainnet.checkpoint.sigp.io
      --disable-deposit-contract-sync
YAML

A few things worth noting:

Start the node

docker compose up -d
Bash

Follow logs in real time:

docker compose logs -f reth
docker compose logs -f lighthouse
Bash

On first startup, Reth will initialize the database and start downloading headers. Lighthouse will fetch the checkpoint state and begin following the chain. Expect both to print a lot during the first few minutes — that's normal.

Verify sync status

Query Reth directly over JSON-RPC:

curl -s -X POST http://localhost:8545 \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' | jq
Bash

false means the execution client is fully synced. Any other response is an object like:

{
  "currentBlock": "0x13a4f1c",
  "highestBlock": "0x13a5002",
  "startingBlock": "0x0"
}
JSON

Where currentBlock is where Reth is now and highestBlock is the chain tip. The gap closes over time.

For Lighthouse, check beacon chain sync:

curl -s http://localhost:5052/eth/v1/node/syncing | jq
Bash

"is_syncing": false means the consensus client has caught up.

Useful commands

Update to the latest images:

docker compose pull
docker compose up -d
Bash

Stop without removing data:

docker compose down
Bash

Restart a single service:

docker compose restart reth
Bash

Check disk usage:

du -sh ./data/reth ./data/lighthouse
Bash

What's next

Once your node is fully synced you have a few natural directions:

← back to blog