2018-10-02 23:22:47 +02:00
|
|
|
version: '3.4'
|
|
|
|
|
|
|
|
networks:
|
2018-11-29 20:13:06 +01:00
|
|
|
lbrynetwork:
|
2018-10-02 23:22:47 +02:00
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
2018-10-06 18:55:44 +02:00
|
|
|
###########
|
|
|
|
## MYSQL ##
|
|
|
|
###########
|
|
|
|
## MariaDB is currently not supported and neither is later versions of MySQL this may change.
|
2018-10-03 19:25:29 +02:00
|
|
|
## https://hub.docker.com/r/_/mariadb/
|
|
|
|
mysql:
|
2018-10-09 16:39:32 +02:00
|
|
|
image: mysql:5.7.23
|
2018-10-03 19:25:29 +02:00
|
|
|
restart: always
|
2018-10-03 20:27:13 +02:00
|
|
|
networks:
|
2018-11-29 20:13:06 +01:00
|
|
|
lbrynetwork:
|
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:
|
|
|
|
- .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:
|
|
|
|
- ./data/db:/var/lib/mysql
|
2018-11-09 07:30:21 +01:00
|
|
|
- ./stuff/my.cnf:/etc/mysql/conf.d/chainquery-optimizations.cnf
|
2018-10-03 22:14:53 +02:00
|
|
|
|
|
|
|
################
|
|
|
|
## Chainquery ##
|
|
|
|
################
|
|
|
|
chainquery:
|
2018-10-16 09:27:45 +02:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
target: app
|
2018-10-03 22:14:53 +02:00
|
|
|
restart: always
|
|
|
|
networks:
|
2018-11-29 20:13:06 +01:00
|
|
|
lbrynetwork:
|
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-11-09 07:30:21 +01:00
|
|
|
- .env
|
|
|
|
- ../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
|