This shouldn't collide in my testing env

This commit is contained in:
Leopere 2018-10-02 17:22:47 -04:00
parent 164ed1515b
commit b63b5fd26a
15 changed files with 47 additions and 19 deletions

View file

@ -2,4 +2,4 @@ COMPOSE_PROJECT_NAME=chainquery
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.6.0.2} RPC_ALLOW_IP=${RPC_ALLOW_IP:-10.10.0.2}

5
chainquery/Dockerfile Normal file
View file

@ -0,0 +1,5 @@
## This base image is for running latest lbrycrdd
FROM ##
MAINTAINER chamunks [at] gmail [dot] com
ADD https://raw.githubusercontent.com/lbryio/chainquery/master/config/default/chainqueryconfig.toml /etc/chainquery/chainqueryconfig.toml.default

View file

@ -0,0 +1,23 @@
version: '3.4'
networks:
lbrynet
external: true
services:
################
## Chainquery ##
################
chainquery:
build: .
restart: always
networks:
lbrynet
ipv4_address: 10.10.0.1
labels:
- "traefik.expose=false"
expose:
- ####
## host volumes for persistent data such as wallet private keys.
volumes:
- ./data/:/data

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.6.0.2} RPC_ALLOW_IP=${RPC_ALLOW_IP:-10.10.0.2}

View file

View file

View file

View file

@ -13,7 +13,7 @@ services:
restart: always restart: always
networks: networks:
lbrynet lbrynet
ipv4_address: 10.6.0.1 ipv4_address: 10.10.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.6.0.2} \ -rpcallowip=${RPC_ALLOW_IP:-10.10.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.6.0.3 ipv4_address: 10.10.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.6.0.100 ipv4_address: 10.10.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.6.0.0/16 lbrynet docker network create -d bridge --subnet=10.10.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.6.0.8 MYSQL_SERVER=10.10.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

@ -23,7 +23,7 @@ services:
- "traefik.port=3000" - "traefik.port=3000"
networks: networks:
green: green:
ipv4_address: 10.6.0.6 ipv4_address: 10.10.0.6
aliases: aliases:
- speech - speech
@ -45,7 +45,7 @@ services:
test: traefik.enable=false test: traefik.enable=false
networks: networks:
green: green:
ipv4_address: 10.6.0.7 ipv4_address: 10.10.0.7
aliases: aliases:
- lbrynet - lbrynet
@ -57,7 +57,7 @@ services:
image: mariadb image: mariadb
# restart: always # restart: always
environment: environment:
MYSQL_SERVER: 10.6.0.8 MYSQL_SERVER: 10.10.0.8
MYSQL_USER: replaceme MYSQL_USER: replaceme
MYSQL_PASSWORD: REPLACEME MYSQL_PASSWORD: REPLACEME
MYSQL_DATABASE: speech MYSQL_DATABASE: speech
@ -70,7 +70,7 @@ services:
test: traefik.enable=false test: traefik.enable=false
networks: networks:
green: green:
ipv4_address: 10.6.0.8 ipv4_address: 10.10.0.8
aliases: aliases:
- mysql - mysql
@ -95,7 +95,7 @@ services:
# test: ["CMD", "curl", "--fail", "http://localhost:8080/", "||", "exit", "1"] # test: ["CMD", "curl", "--fail", "http://localhost:8080/", "||", "exit", "1"]
networks: networks:
green: green:
ipv4_address: 10.6.0.9 ipv4_address: 10.10.0.9
aliases: aliases:
- adminer - adminer
@ -139,7 +139,7 @@ services:
retries: 3 retries: 3
networks: networks:
green: green:
ipv4_address: 10.6.0.10 ipv4_address: 10.10.0.10
aliases: aliases:
- traefik - traefik
@ -151,4 +151,4 @@ networks:
driver: bridge driver: bridge
ipam: ipam:
config: config:
- subnet: 10.6.0.0/16 - subnet: 10.10.0.0/16

View file

@ -19,7 +19,7 @@ services:
- ./data/speech:/data - ./data/speech:/data
networks: networks:
green: green:
ipv4_address: 10.6.0.6 ipv4_address: 10.10.0.6
aliases: aliases:
- speech - speech
@ -47,7 +47,7 @@ services:
- ./data/lbrynet:/data - ./data/lbrynet:/data
networks: networks:
green: green:
ipv4_address: 10.6.0.7 ipv4_address: 10.10.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.6.0.8 ipv4_address: 10.10.0.8
aliases: aliases:
- mysql - mysql
@ -86,4 +86,4 @@ networks:
driver: bridge driver: bridge
ipam: ipam:
config: config:
- subnet: 10.6.0.0/16 - subnet: 10.10.0.0/16