fix port assignment for Docker testnet (#432)

This commit is contained in:
Federico Kunze 2020-08-05 18:39:03 +02:00 committed by GitHub
parent bcca24f752
commit 27dc867cdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 14 deletions

View File

@ -25,8 +25,8 @@ services:
ports:
- "26659-26660:26656-26657"
- "1318:1317"
- "8546:8545"
- "8546:8546"
- "8547:8545"
- "8548:8546"
environment:
- ID=1
- LOG=${LOG:-ethermintd.log}
@ -46,8 +46,8 @@ services:
ports:
- "26661-26662:26656-26657"
- "1319:1317"
- "8547:8545"
- "8546:8546"
- "8549:8545"
- "8550:8546"
volumes:
- ./build:/ethermint:Z
networks:
@ -64,8 +64,8 @@ services:
ports:
- "26663-26664:26656-26657"
- "1320:1317"
- "8548:8545"
- "8546:8546"
- "8551:8545"
- "8552:8546"
volumes:
- ./build:/ethermint:Z
networks:

View File

@ -97,12 +97,12 @@ make localnet-start
This command creates a 4-node network using the `ethermintdnode` Docker image.
The ports for each node are found in this table:
| Node ID | P2P Port | REST/RPC Port |
|------------------|----------|---------------|
| `ethermintnode0` | `26656` | `26657` |
| `ethermintnode1` | `26659` | `26660` |
| `ethermintnode2` | `26661` | `26662` |
| `ethermintnode3` | `26663` | `26664` |
| Node ID | P2P Port | Tendermint RPC Port | REST/ Ethereum JSON-RPC Port | WebSocket Port |
|------------------|----------|---------------------|------------------------------|----------------|
| `ethermintnode0` | `26656` | `26657` | `8545` | `8546` |
| `ethermintnode1` | `26659` | `26660` | `8547` | `8548` |
| `ethermintnode2` | `26661` | `26662` | `8549` | `8550` |
| `ethermintnode3` | `26663` | `26664` | `8551` | `8552` |
To update the binary, just rebuild it and restart the nodes
@ -248,6 +248,7 @@ You can send a curl command such as:
```bash
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}' -H "Content-Type: application/json" 192.162.10.1:8545
```
::: tip
The IP address will be the public IP of the docker container.
:::