2018-10-02 23:22:47 +02:00
|
|
|
version: '3.4'
|
|
|
|
|
|
|
|
networks:
|
2018-11-29 20:14:02 +01:00
|
|
|
lbry-network:
|
2018-10-02 23:22:47 +02:00
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
2018-10-06 18:55:44 +02:00
|
|
|
###########
|
|
|
|
## MYSQL ##
|
|
|
|
###########
|
2019-04-30 16:58:27 +02:00
|
|
|
## https://hub.docker.com/r/_/percona/
|
2018-10-03 19:25:29 +02:00
|
|
|
mysql:
|
2019-04-30 16:58:27 +02:00
|
|
|
image: percona:5.7
|
2018-10-03 19:25:29 +02:00
|
|
|
restart: always
|
2018-10-03 20:27:13 +02:00
|
|
|
networks:
|
2018-11-29 20:14:02 +01:00
|
|
|
lbry-network:
|
2018-11-29 20:07:39 +01:00
|
|
|
ipv4_address: 10.6.1.10
|
2018-10-03 20:27:13 +02:00
|
|
|
aliases:
|
|
|
|
- mysql
|
2018-11-05 04:42:35 +01:00
|
|
|
env_file:
|
2019-04-26 02:41:42 +02:00
|
|
|
- ../environment/chainquery.env
|
2018-10-03 19:25:29 +02:00
|
|
|
expose:
|
|
|
|
- 3306
|
2018-11-09 07:30:21 +01: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-07 02:58:09 +01:00
|
|
|
ports:
|
|
|
|
- 3306:3306
|
2018-10-03 19:25:29 +02:00
|
|
|
volumes:
|
2019-04-26 00:54:08 +02: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 22:14:53 +02:00
|
|
|
|
|
|
|
################
|
|
|
|
## Chainquery ##
|
|
|
|
################
|
|
|
|
chainquery:
|
2019-04-26 00:54:08 +02:00
|
|
|
image: lbryio/lbry-docker:linux-x86_64-production
|
2018-10-03 22:14:53 +02:00
|
|
|
restart: always
|
|
|
|
networks:
|
2018-11-29 20:14:02 +01:00
|
|
|
lbry-network:
|
2018-11-29 20:07:39 +01:00
|
|
|
ipv4_address: 10.6.1.3
|
2018-11-05 04:42:35 +01:00
|
|
|
env_file:
|
2018-12-20 09:48:23 +01:00
|
|
|
- env
|
2019-04-26 02:41:42 +02:00
|
|
|
- ../environment/lbrycrd.env
|
2018-10-03 22:14:53 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.expose=false"
|
|
|
|
expose:
|
|
|
|
- 6300
|
2018-11-05 04:42:35 +01:00
|
|
|
ports:
|
|
|
|
- 6300:6300
|
2018-10-03 22:14:53 +02:00
|
|
|
depends_on:
|
|
|
|
- mysql
|
2018-11-12 03:32:36 +01:00
|
|
|
## TODO: Uncomment this in a docker-compose.override.yml to allow for external configurations.
|
2019-04-26 02:41:42 +02:00
|
|
|
volumes:
|
|
|
|
- ../persist/chainquery/config/chainqueryconfig.toml:/etc/chainquery/chainqueryconfig.toml
|