f910732155
Moved data dir and removed traefik label Moved readme for testnet compose Adding RUN_MODEs regtest and testnet Adding advance_blocks.sh into all lbrycrd containers Adding advance cmd and moved Dockerfile to appropriate dir Cleanup and moved Dockerfiles Moved lbrycrd Dockerfiles to appropriate subdirectories and removed. More moving and deletions Adding catchall output Updated default runmode in example Removed incomplete container directory This should not be in a production branch at this point now that we have stable containers published. Removed incomplete container for now Deleted compile directory and README.md Cleaning up chainquery Deleting placeholders Updated start.sh Removing superfluous .dockerignores & more Adjusted start.sh source path Updated ignores Updated readme in prep for build tags and ship armhf-prod dir start.sh's should be recycled when possible. No sense in code duplication lets try and aim for unification. Docker prefers WORKDIR over cd docker prefers WORKDIR over cd
57 lines
1.3 KiB
Text
57 lines
1.3 KiB
Text
version: '3.4'
|
|
|
|
networks:
|
|
lbry-network:
|
|
external: true
|
|
|
|
services:
|
|
###########
|
|
## MYSQL ##
|
|
###########
|
|
## MariaDB is currently not supported and neither is later versions of MySQL this may change.
|
|
## https://hub.docker.com/r/_/mariadb/
|
|
mysql:
|
|
image: mysql:5.7.23
|
|
restart: always
|
|
networks:
|
|
lbry-network:
|
|
ipv4_address: 10.6.1.10
|
|
aliases:
|
|
- mysql
|
|
env_file:
|
|
- env
|
|
expose:
|
|
- 3306
|
|
## TODO: I want to find a way that is acceptable to everyone to lock this up
|
|
## and not share it with everyone at least eventually.
|
|
ports:
|
|
- 3306:3306
|
|
volumes:
|
|
- ./data/db:/var/lib/mysql
|
|
- ./stuff/my.cnf:/etc/mysql/conf.d/chainquery-optimizations.cnf
|
|
|
|
################
|
|
## Chainquery ##
|
|
################
|
|
chainquery:
|
|
build:
|
|
context: .
|
|
target: app
|
|
restart: always
|
|
networks:
|
|
lbry-network:
|
|
ipv4_address: 10.6.1.3
|
|
env_file:
|
|
- env
|
|
- ../lbrycrd/env
|
|
labels:
|
|
- "traefik.expose=false"
|
|
expose:
|
|
- 6300
|
|
ports:
|
|
- 6300:6300
|
|
depends_on:
|
|
- mysql
|
|
## TODO: Uncomment this in a docker-compose.override.yml to allow for external configurations.
|
|
# volumes:
|
|
# - ./data/config/chainqueryconfig.toml:/etc/chainquery/chainqueryconfig.toml
|