fix port assignment for Docker testnet (#432)
This commit is contained in:
parent
bcca24f752
commit
27dc867cdd
@ -25,8 +25,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "26659-26660:26656-26657"
|
- "26659-26660:26656-26657"
|
||||||
- "1318:1317"
|
- "1318:1317"
|
||||||
- "8546:8545"
|
- "8547:8545"
|
||||||
- "8546:8546"
|
- "8548:8546"
|
||||||
environment:
|
environment:
|
||||||
- ID=1
|
- ID=1
|
||||||
- LOG=${LOG:-ethermintd.log}
|
- LOG=${LOG:-ethermintd.log}
|
||||||
@ -46,8 +46,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "26661-26662:26656-26657"
|
- "26661-26662:26656-26657"
|
||||||
- "1319:1317"
|
- "1319:1317"
|
||||||
- "8547:8545"
|
- "8549:8545"
|
||||||
- "8546:8546"
|
- "8550:8546"
|
||||||
volumes:
|
volumes:
|
||||||
- ./build:/ethermint:Z
|
- ./build:/ethermint:Z
|
||||||
networks:
|
networks:
|
||||||
@ -64,8 +64,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "26663-26664:26656-26657"
|
- "26663-26664:26656-26657"
|
||||||
- "1320:1317"
|
- "1320:1317"
|
||||||
- "8548:8545"
|
- "8551:8545"
|
||||||
- "8546:8546"
|
- "8552:8546"
|
||||||
volumes:
|
volumes:
|
||||||
- ./build:/ethermint:Z
|
- ./build:/ethermint:Z
|
||||||
networks:
|
networks:
|
||||||
|
@ -97,12 +97,12 @@ make localnet-start
|
|||||||
This command creates a 4-node network using the `ethermintdnode` Docker image.
|
This command creates a 4-node network using the `ethermintdnode` Docker image.
|
||||||
The ports for each node are found in this table:
|
The ports for each node are found in this table:
|
||||||
|
|
||||||
| Node ID | P2P Port | REST/RPC Port |
|
| Node ID | P2P Port | Tendermint RPC Port | REST/ Ethereum JSON-RPC Port | WebSocket Port |
|
||||||
|------------------|----------|---------------|
|
|------------------|----------|---------------------|------------------------------|----------------|
|
||||||
| `ethermintnode0` | `26656` | `26657` |
|
| `ethermintnode0` | `26656` | `26657` | `8545` | `8546` |
|
||||||
| `ethermintnode1` | `26659` | `26660` |
|
| `ethermintnode1` | `26659` | `26660` | `8547` | `8548` |
|
||||||
| `ethermintnode2` | `26661` | `26662` |
|
| `ethermintnode2` | `26661` | `26662` | `8549` | `8550` |
|
||||||
| `ethermintnode3` | `26663` | `26664` |
|
| `ethermintnode3` | `26663` | `26664` | `8551` | `8552` |
|
||||||
|
|
||||||
To update the binary, just rebuild it and restart the nodes
|
To update the binary, just rebuild it and restart the nodes
|
||||||
|
|
||||||
@ -241,13 +241,14 @@ To interact with the testnet via WebSockets or RPC/API, you will send your reque
|
|||||||
|
|
||||||
| Eth JSON-RPC | Eth WS |
|
| Eth JSON-RPC | Eth WS |
|
||||||
|--------------|--------|
|
|--------------|--------|
|
||||||
| `8545` | `8546` |
|
| `8545` | `8546` |
|
||||||
|
|
||||||
You can send a curl command such as:
|
You can send a curl command such as:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}' -H "Content-Type: application/json" 192.162.10.1:8545
|
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}' -H "Content-Type: application/json" 192.162.10.1:8545
|
||||||
```
|
```
|
||||||
|
|
||||||
::: tip
|
::: tip
|
||||||
The IP address will be the public IP of the docker container.
|
The IP address will be the public IP of the docker container.
|
||||||
:::
|
:::
|
||||||
|
Loading…
Reference in New Issue
Block a user