1.6 KiB
title |
---|
Run Nwaku with Docker Compose |
nwaku-compose
is a ready-to-use docker-compose
setup that runs a nwaku node and monitors it with already configured Prometheus and Grafana instances.
This guide provides detailed steps to build, configure, run, and monitor a nwaku
node with nwaku-compose.
Prerequisites
Clone the Repository
git clone https://github.com/alrevuelta/nwaku-compose
cd nwaku-compose
Configure the Setup
Modify the docker-compose.yml
file to customize your node's configuration, including the Docker image and nwaku arguments. Please visit statusteam/nim-waku/tags for images of specific nwaku
releases.
Run Docker Compose
Export your public IP (MY_EXT_IP
) and run nwaku-compose
:
export MY_EXT_IP=$(dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}')
docker-compose up -d
Monitor the Node
Visit http://localhost:3000/d/yns_4vFVk/nwaku-monitoring?orgId=1 to view your node metrics in real-time.
:::tip
To access Grafana from outside your machine, remove 127.0.0.1
and open the port. Consider setting up a password for Grafana to ensure security.
:::