2018-10-02 17:22:47 -04:00
|
|
|
version: '3.4'
|
|
|
|
|
|
|
|
networks:
|
2018-11-29 19:14:02 +00:00
|
|
|
lbry-network:
|
2018-10-02 17:22:47 -04:00
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
2018-10-06 12:55:44 -04:00
|
|
|
###########
|
|
|
|
## MYSQL ##
|
|
|
|
###########
|
|
|
|
## MariaDB is currently not supported and neither is later versions of MySQL this may change.
|
2018-10-03 13:25:29 -04:00
|
|
|
## https://hub.docker.com/r/_/mariadb/
|
|
|
|
mysql:
|
2018-10-09 10:39:32 -04:00
|
|
|
image: mysql:5.7.23
|
2018-10-03 13:25:29 -04:00
|
|
|
restart: always
|
2018-10-03 14:27:13 -04:00
|
|
|
networks:
|
2018-11-29 19:14:02 +00:00
|
|
|
lbry-network:
|
2018-11-29 19:07:39 +00:00
|
|
|
ipv4_address: 10.6.1.10
|
2018-10-03 14:27:13 -04:00
|
|
|
aliases:
|
|
|
|
- mysql
|
2018-11-04 22:42:35 -05:00
|
|
|
env_file:
|
2019-04-25 20:41:42 -04:00
|
|
|
- ../environment/chainquery.env
|
2018-10-03 13:25:29 -04:00
|
|
|
expose:
|
|
|
|
- 3306
|
2018-11-09 01:30:21 -05:00
|
|
|
## 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.
|
2018-11-06 20:58:09 -05:00
|
|
|
ports:
|
|
|
|
- 3306:3306
|
2018-10-03 13:25:29 -04:00
|
|
|
volumes:
|
2019-04-25 18:54:08 -04:00
|
|
|
- ../persist/chainquery/db:/var/lib/mysql
|
|
|
|
## This one may need to be tweaked based on where you run this docker-compose from.
|
|
|
|
- ../stuff/my.cnf:/etc/mysql/conf.d/chainquery-optimizations.cnf
|
2018-10-03 16:14:53 -04:00
|
|
|
|
|
|
|
################
|
|
|
|
## Chainquery ##
|
|
|
|
################
|
|
|
|
chainquery:
|
2019-04-25 18:54:08 -04:00
|
|
|
image: lbryio/lbry-docker:linux-x86_64-production
|
2018-10-03 16:14:53 -04:00
|
|
|
restart: always
|
|
|
|
networks:
|
2018-11-29 19:14:02 +00:00
|
|
|
lbry-network:
|
2018-11-29 19:07:39 +00:00
|
|
|
ipv4_address: 10.6.1.3
|
2018-11-04 22:42:35 -05:00
|
|
|
env_file:
|
2018-12-20 03:48:23 -05:00
|
|
|
- env
|
2019-04-25 20:41:42 -04:00
|
|
|
- ../environment/lbrycrd.env
|
2018-10-03 16:14:53 -04:00
|
|
|
labels:
|
|
|
|
- "traefik.expose=false"
|
|
|
|
expose:
|
|
|
|
- 6300
|
2018-11-04 22:42:35 -05:00
|
|
|
ports:
|
|
|
|
- 6300:6300
|
2018-10-03 16:14:53 -04:00
|
|
|
depends_on:
|
|
|
|
- mysql
|
2018-11-11 21:32:36 -05:00
|
|
|
## TODO: Uncomment this in a docker-compose.override.yml to allow for external configurations.
|
2019-04-25 20:41:42 -04:00
|
|
|
volumes:
|
|
|
|
- ../persist/chainquery/config/chainqueryconfig.toml:/etc/chainquery/chainqueryconfig.toml
|