https://github.com/vpavlin/nwaku-compose
https://github.com/vpavlin/nwaku-compose
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vpavlin/nwaku-compose
- Owner: vpavlin
- Created: 2023-04-03T08:17:23.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-04T13:43:30.000Z (almost 2 years ago)
- Last Synced: 2025-01-23T03:45:07.948Z (4 months ago)
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nwaku-compose
Ready to use docker-compose that runs a [nwaku](https://github.com/waku-org/nwaku) node and monitors it with already set up and configured grafana and prometheus instances. All in just 3 commands.
## Instructions
Note that you must have installed `docker-compose` and `git`.
Get the code:
```console
git clone https://github.com/alrevuelta/nwaku-compose.git
cd nwaku-compose
```Get your public IP and store it to be used by docker-compose. Note that if you are behind a NAT you should configure it properly.
```console
export MY_EXT_IP=$(dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}')
```Start everything: `nwaku`, `prometheus` and `grafana`.
```console
docker-compose up -d
```Go to [http://localhost:3000/d/yns_4vFVk/nwaku-monitoring?orgId=1](http://localhost:3000/d/yns_4vFVk/nwaku-monitoring?orgId=1) and after some seconds, your node metrics will be live there, just like in the picture. As simple as that.

Notes:
* Feel free to change the image you are using `statusteam/nim-waku:xxx`. You can see the available tags in [docker hub](https://hub.docker.com/r/statusteam/nim-waku).
* If you want to access grafana from outside your machine, feel free to remove `127.0.0.1` and open the port, but in that case you may want to set up a password to your grafana.