2023-08-09 10:36:03 +00:00
# nwaku-compose
2023-11-01 15:51:30 +00:00
Ready to use docker-compose to run your own [nwaku ](https://github.com/waku-org/nwaku ) full node. Description:
2023-11-01 15:45:46 +00:00
* nwaku node running relay and store protocols with RLN enabled.
2023-11-01 15:51:30 +00:00
* Simple frontend to interact with your node and the network, to publish and receive messages.
* Grafana dashboard for advanced users or node operators.
* Requires `docker-compose` and `git` .
2023-08-09 10:36:03 +00:00
2023-11-01 15:51:30 +00:00
**1. Get the code:**
2023-08-09 10:36:03 +00:00
```console
2023-08-09 10:43:49 +00:00
git clone git@github.com:waku-org/nwaku-compose.git
2023-08-09 10:36:03 +00:00
cd nwaku-compose
```
2023-11-01 15:51:30 +00:00
**2. Provide your Ethereum node**
2023-11-01 15:45:46 +00:00
Waku needs an Ethereum Sepolia node, either yours or from a third party. Provide a websockets endpoint. You can get one for free from [Infura ](https://www.infura.io/ ).
```
export ETH_CLIENT_ADDRESS=wss://sepolia.infura.io/ws/v3/USE_YOUR_INFURA_KEY_HERE
2023-08-09 10:36:03 +00:00
```
2023-11-01 15:52:48 +00:00
**3. Start everything**
2023-10-03 12:34:52 +00:00
```console
2023-11-01 15:45:46 +00:00
docker-compose up -d
2023-10-03 12:34:52 +00:00
```
2023-11-01 15:52:48 +00:00
**4. Register your RLN membership**
2023-11-01 15:51:30 +00:00
If you just want to relay traffic in the network, you are all set. But if you want to publish messages, you need an RLN membership. Its a simple onchain transaction, you need:
2023-11-01 15:45:46 +00:00
* A wallet with some Sepolia Eth, < 0.1 Eth .
2023-11-01 15:54:32 +00:00
* Go to [localhost:4000 ](http://localhost:4000 ) and `Register Credentials` . Set a `password` and `Export` it as `keystore.json`
2023-11-01 15:51:30 +00:00
* In your nwaku node, set. TODO: Improve manual process.
2023-11-01 15:45:46 +00:00
* `rln-relay-cred-password` to the `password` you chose.
* `rln-relay-cred-path` to `keystore.json`
2023-10-03 12:34:52 +00:00
2023-11-01 15:52:48 +00:00
**5. Interact with your nwaku node**
2023-11-01 15:51:30 +00:00
* See [localhost:4000 ](http://localhost:4000 ) to interact with your node
* See [localhost:3000 ](http://localhost:3000 ) for advanced metrics.
2023-10-03 12:34:52 +00:00
2023-11-01 15:45:46 +00:00
For advanced documentation, refer to [ADVANCED.md ](https://github.com/waku-org/nwaku-compose/blob/master/ADVANCED.md ).