Expose 18080 for HTTP API in Testnet (#608)

This commit is contained in:
Youngjoon Lee 2024-03-12 15:29:51 +09:00 committed by GitHub
parent e51865fe33
commit 98bc66a67c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ services:
dockerfile: testnet/Dockerfile
ports:
- "3000:3000/tcp"
- "8080:8080/tcp"
- "18080:18080/tcp"
volumes:
- ./testnet:/etc/nomos
environment:

View File

@ -47,13 +47,13 @@ docker compose logs -f {bootstrap,libp2p-node,mixnode,etcd}
## Using testnet
Bootstrap node is accessible from the host via `3000` and `8080` ports. To expose other nomos nodes, please update `libp2p-node` service in the `compose.yml` file with this configuration:
Bootstrap node is accessible from the host via `3000` and `18080` ports. To expose other nomos nodes, please update `libp2p-node` service in the `compose.yml` file with this configuration:
```bash
libp2p-node:
ports:
- "3001-3010:3000" # Use range depending on the number of nomos node replicas.
- "8081-8190:8080"
- "18081-18190:18080"
```
After running `docker compose up`, the randomly assigned ports can be viewed with `ps` command: