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.
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:
- A machine with at least 16 GB RAM and 2 TB SSD (HDD will bottleneck sync badly)
- Ubuntu 22.04 or any recent Debian-based distro
- Open ports:
8545(HTTP RPC),8551(Engine API),9000(Lighthouse P2P)
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
BashUsing 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
BashProject structure
mkdir -p ~/reth-node && cd ~/reth-node
BashEverything 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
BashGenerate 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
BashBoth 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
YAMLA few things worth noting:
--checkpoint-sync-urlmakes Lighthouse download a recent finalized state instead of syncing from genesis — this cuts initial sync from days to hours.--http.api eth,net,web3exposes only the namespaces you need. Don't exposeadminordebugon a public interface.depends_on: rethensures Lighthouse starts after Reth, but doesn't wait for Reth to be ready — therestart: unless-stoppedpolicy handles transient startup failures.
Start the node
docker compose up -d
BashFollow logs in real time:
docker compose logs -f reth
docker compose logs -f lighthouse
BashOn 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
Bashfalse means the execution client is fully synced. Any other response is an object like:
{
"currentBlock": "0x13a4f1c",
"highestBlock": "0x13a5002",
"startingBlock": "0x0"
}
JSONWhere 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
BashStop without removing data:
docker compose down
BashRestart a single service:
docker compose restart reth
BashCheck disk usage:
du -sh ./data/reth ./data/lighthouse
BashWhat's next
Once your node is fully synced you have a few natural directions:
- Monitoring — add a Prometheus + Grafana stack. Reth exposes metrics at
localhost:9001out of the box. - Validator — run
lighthouse vcpointed at your beacon node to start earning attestation rewards. - MEV-Boost — connect mev-boost between Lighthouse and Reth to access the block builder market.
- Secure the RPC — if you expose
8545externally, put NGINX in front with rate limiting and token auth.