Browse Source

[localnet] use routable IPs

pull/1453/head
Anton Kaliaev 7 years ago
parent
commit
d06390638d
No known key found for this signature in database GPG Key ID: 7B6881D965918214
2 changed files with 6 additions and 6 deletions
  1. +1
    -1
      Makefile
  2. +5
    -5
      docker-compose.yml

+ 1
- 1
Makefile View File

@ -188,7 +188,7 @@ build-linux:
# Run a 4-node testnet locally
docker-start:
@echo "Wait until 'Attaching to node0, node1, node2, node3' message appears"
@if ! [ -f build/node0/config/genesis.json ]; then docker run --rm -v `pwd`/build:/tendermint:Z tendermint/localnode testnet --v 4 --o . --populate-persistent-peers --starting-ip-address 10.100.0.2 ; fi
@if ! [ -f build/node0/config/genesis.json ]; then docker run --rm -v `pwd`/build:/tendermint:Z tendermint/localnode testnet --v 4 --o . --populate-persistent-peers --starting-ip-address 192.167.10.2 ; fi
docker-compose up
# Stop testnet


+ 5
- 5
docker-compose.yml View File

@ -13,7 +13,7 @@ services:
- ${FOLDER:-./build}:/tendermint:Z
networks:
localnet:
ipv4_address: 10.100.0.2
ipv4_address: 192.167.10.2
node1:
container_name: node1
@ -27,7 +27,7 @@ services:
- ${FOLDER:-./build}:/tendermint:Z
networks:
localnet:
ipv4_address: 10.100.0.3
ipv4_address: 192.167.10.3
node2:
container_name: node2
@ -41,7 +41,7 @@ services:
- ${FOLDER:-./build}:/tendermint:Z
networks:
localnet:
ipv4_address: 10.100.0.4
ipv4_address: 192.167.10.4
node3:
container_name: node3
@ -55,7 +55,7 @@ services:
- ${FOLDER:-./build}:/tendermint:Z
networks:
localnet:
ipv4_address: 10.100.0.5
ipv4_address: 192.167.10.5
networks:
localnet:
@ -64,5 +64,5 @@ networks:
driver: default
config:
-
subnet: 10.100.0.0/16
subnet: 192.167.10.0/16

Loading…
Cancel
Save