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_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}
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_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}
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
networks:
lbrynet
ipv4_address: 10.6.0.1
ipv4_address: 10.10.0.1
labels:
- "traefik.expose=false"
expose:

View file

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

View file

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

View file

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

View file

@ -1,2 +1,2 @@
#!/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
## 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.
MYSQL_USER=replaceme
MYSQL_PASSWORD=REPLACEME

View file

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

View file

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