Updating IP's to further avoid collisions

This commit is contained in:
Leopere 2018-10-02 17:08:00 -04:00
parent a26e3ca9f2
commit 3fdf664926
9 changed files with 14 additions and 11 deletions

View file

@ -1,2 +1,5 @@
COMPOSE_PROJECT_NAME=chainquery COMPOSE_PROJECT_NAME=chainquery
RPC_USER=${RPC_USER=lbryrpc}
RPC_PASSWORD=${RPC_PASSWORD:-$(env LC_CTYPE=C LC_ALL=C tr -dc A-Za-z0-9 < /dev/urandom | head -c 16 | xargs)} RPC_PASSWORD=${RPC_PASSWORD:-$(env LC_CTYPE=C LC_ALL=C tr -dc A-Za-z0-9 < /dev/urandom | head -c 16 | xargs)}
## This should be the internal container IP from which you'll be calling the RPC for Lbrycrdd from.
RPC_ALLOW_IP=${RPC_ALLOW_IP:-10.6.0.2}

View file

@ -2,4 +2,4 @@ COMPOSE_PROJECT_NAME=lbrycrd
RPC_USER=${RPC_USER=lbryrpc} RPC_USER=${RPC_USER=lbryrpc}
RPC_PASSWORD=${RPC_PASSWORD:-$(env LC_CTYPE=C LC_ALL=C tr -dc A-Za-z0-9 < /dev/urandom | head -c 16 | xargs)} RPC_PASSWORD=${RPC_PASSWORD:-$(env LC_CTYPE=C LC_ALL=C tr -dc A-Za-z0-9 < /dev/urandom | head -c 16 | xargs)}
## This should be the internal container IP from which you'll be calling the RPC for Lbrycrdd from. ## This should be the internal container IP from which you'll be calling the RPC for Lbrycrdd from.
RPC_ALLOW_IP=${RPC_ALLOW_IP:-10.5.0.2} RPC_ALLOW_IP=${RPC_ALLOW_IP:-10.6.0.2}

View file

@ -13,7 +13,7 @@ services:
restart: always restart: always
networks: networks:
lbrynet lbrynet
ipv4_address: 10.5.0.1 ipv4_address: 10.6.0.1
labels: labels:
- "traefik.expose=false" - "traefik.expose=false"
expose: expose:

View file

@ -15,5 +15,5 @@ rm -f /var/run/lbrycrdd.pid
-printtoconsole \ -printtoconsole \
-rpcport=${RPC_PORT:-9245} \ -rpcport=${RPC_PORT:-9245} \
-rpcpassword=${RPC_PASSWORD:-changeme} \ -rpcpassword=${RPC_PASSWORD:-changeme} \
-rpcallowip=${RPC_ALLOW_IP:-10.5.0.2} \ -rpcallowip=${RPC_ALLOW_IP:-10.6.0.2} \
-rpcuser=${RPC_USER:-lbryrpc} -rpcuser=${RPC_USER:-lbryrpc}

View file

@ -13,7 +13,7 @@ services:
restart: always restart: always
networks: networks:
lbrynet lbrynet
ipv4_address: 10.5.0.3 ipv4_address: 10.6.0.3
labels: labels:
- "traefik.expose=false" - "traefik.expose=false"
ports: ports:

View file

@ -15,7 +15,7 @@ services:
command: --api --docker --docker.domain=docker.localhost --logLevel=DEBUG command: --api --docker --docker.domain=docker.localhost --logLevel=DEBUG
networks: networks:
lbrynet lbrynet
ipv4_address: 10.5.0.100 ipv4_address: 10.6.0.100
ports: ports:
- target: 80 - target: 80
published: 80 published: 80

View file

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
docker network create -d bridge --subnet=10.5.0.10/16 lbrynet docker network create -d bridge --subnet=10.6.0.0/16 lbrynet

View file

@ -1,6 +1,6 @@
COMPOSE_PROJECT_NAME=speech COMPOSE_PROJECT_NAME=speech
## This value can generally be left alone in a default setup. ## This value can generally be left alone in a default setup.
MYSQL_SERVER=10.5.0.8 MYSQL_SERVER=10.6.0.8
## Update the rest of these if possible. ## Update the rest of these if possible.
MYSQL_USER=replaceme MYSQL_USER=replaceme
MYSQL_PASSWORD=REPLACEME MYSQL_PASSWORD=REPLACEME

View file

@ -19,7 +19,7 @@ services:
- ./data/speech:/data - ./data/speech:/data
networks: networks:
green: green:
ipv4_address: 10.5.0.6 ipv4_address: 10.6.0.6
aliases: aliases:
- speech - speech
@ -47,7 +47,7 @@ services:
- ./data/lbrynet:/data - ./data/lbrynet:/data
networks: networks:
green: green:
ipv4_address: 10.5.0.7 ipv4_address: 10.6.0.7
aliases: aliases:
- lbrynet - lbrynet
@ -74,7 +74,7 @@ services:
- ./data/db:/var/lib/mysql - ./data/db:/var/lib/mysql
networks: networks:
green: green:
ipv4_address: 10.5.0.8 ipv4_address: 10.6.0.8
aliases: aliases:
- mysql - mysql
@ -86,4 +86,4 @@ networks:
driver: bridge driver: bridge
ipam: ipam:
config: config:
- subnet: 10.5.0.0/16 - subnet: 10.6.0.0/16