Here’s a detailed guide with more code on setting up a Waku validator node using nwaku
.
Ensure Docker and Docker Compose are installed:
sudo apt-get update
sudo apt-get install docker.io docker-compose -y
git clone <https://github.com/waku-org/nwaku.git>
cd nwaku
docker build -t nwaku .
Create a docker-compose.yml
file:
version: '3'
services:
nwaku:
image: nwaku
ports:
- "60000:60000/tcp"
- "60000:60000/udp"
command: >
--nat=extip:<YOUR_EXTERNAL_IP>
--relay
--log-level=debug
--metrics-server
environment:
- WAKU_PORT=60000
Replace <YOUR_EXTERNAL_IP>
with your actual IP.
docker-compose up -d
To check if the node is running correctly:
docker-compose logs -f
Waku nodes expose metrics using Prometheus. Add --metrics-server
to your command to enable it and access metrics at http://localhost:6060/metrics
.