add tip on cloud service providers

This commit is contained in:
LordGhostX 2023-06-15 04:33:19 +01:00
parent da698b437e
commit 7b54f92d28
No known key found for this signature in database
GPG Key ID: 520CC5DC4F94FCC7
4 changed files with 24 additions and 14 deletions

View File

@ -44,7 +44,8 @@
"classwide",
"devel",
"statusteam",
"myaddr"
"myaddr",
"extip"
],
"flagWords": [],
"ignorePaths": [

View File

@ -100,7 +100,6 @@ To learn more about running nwaku, please refer to:
- [Run a Nwaku Node](/guides/run-nwaku-node#run-the-node)
- [Run Nwaku in Docker Container](/guides/nwaku/run-docker)
- [Run Nwaku with Docker Compose](/guides/nwaku/run-docker-compose)
- [Run Nwaku on DigitalOcean Droplet](https://github.com/waku-org/nwaku/blob/master/docs/operators/droplet-quickstart.md)
## Run Test Suite

View File

@ -30,11 +30,11 @@ You can also build the Docker image locally using:
git clone --recurse-submodules https://github.com/waku-org/nwaku
cd nwaku
# Build image using make
make docker-image
# Build image using docker build
docker build -t statusteam/nim-waku:latest .
# Build image using make
make docker-image
```
## Run Docker Container
@ -49,12 +49,22 @@ docker run [OPTIONS] [IMAGE] [ARG...]
- `IMAGE` is the image and tag you pulled from the registry or built locally
- `ARG...` is the list of `nwaku` arguments for your [chosen nwaku configuration](https://github.com/waku-org/nwaku/blob/master/docs/operators/how-to/configure.md)
:::tip
We recommend using explicit port mappings (`-p`) when exposing ports accessible from outside the host (libp2p listening ports, discovery, HTTP server).
:::
To run `nwaku` in a Docker container using the [default configuration](/guides/run-nwaku-node#run-the-node), use:
To run `nwaku` in a Docker container using the most typical configuration, use:
```bash
docker run -i -t -p 60000:60000 -p 8545:8545 statusteam/nim-waku
```
docker run -i -t -p 60000:60000 -p 9000:9000/udp statusteam/nim-waku \
--dns-discovery:true \
--dns-discovery-url:enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.waku.nodes.status.im \
--discv5-discovery \
--nat:extip:[YOUR PUBLIC IP] # or, if you are behind a nat: --nat=any
```
:::tip
To find your public IP, use:
```bash
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}'
```
We recommend using explicit port mappings (`-p`) when exposing ports accessible from outside the host (libp2p listening ports, discovery, HTTP server).
:::

View File

@ -20,10 +20,10 @@ Before running a `nwaku` node, it is necessary to build it. Nwaku provides multi
| Build Source | Build a `nwaku` node directly from the source code | [Build Nwaku from Source](/guides/nwaku/build-from-source) |
| Docker Container | Build and run a `nwaku` node in a Docker Container | [Run Nwaku in Docker Container](/guides/nwaku/run-docker) |
| Docker Compose | Build and run a `nwaku` node with Docker Compose | [Run Nwaku with Docker Compose](/guides/nwaku/run-docker-compose) |
| DigitalOcean Droplet | Build and run a `nwaku` node on a DigitalOcean Droplet | [Run Nwaku on DigitalOcean Droplet](https://github.com/waku-org/nwaku/blob/master/docs/operators/droplet-quickstart.md) |
:::tip
If you want to try the latest `nwaku` updates without compiling the binaries, [download the nightly release](https://github.com/waku-org/nwaku/releases/tag/nightly).
- If you want to try the latest `nwaku` updates without compiling the binaries, [download the nightly release](https://github.com/waku-org/nwaku/releases/tag/nightly).
- You can run `nwaku` binaries and Docker images on cloud service providers like [Google Cloud](https://cloud.google.com/), [Microsoft Azure](https://azure.microsoft.com/), [Amazon Web Services](https://aws.amazon.com/), and [DigitalOcean](https://www.digitalocean.com/).
:::
## Run the Node