2018-10-02 23:22:47 +02:00
|
|
|
version: '3.4'
|
|
|
|
|
|
|
|
networks:
|
2018-11-04 20:57:23 +01:00
|
|
|
lbrynet:
|
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-04 20:57:23 +01:00
|
|
|
lbrynet:
|
2018-10-09 20:33:47 +02:00
|
|
|
ipv4_address: 10.5.1.10
|
2018-10-03 20:27:13 +02:00
|
|
|
aliases:
|
|
|
|
- mysql
|
2018-11-04 20:35:35 +01:00
|
|
|
env_file:
|
|
|
|
- .env
|
2018-10-03 19:25:29 +02:00
|
|
|
expose:
|
|
|
|
- 3306
|
2018-11-04 20:35:35 +01:00
|
|
|
ports:
|
|
|
|
- 3306:3306
|
2018-10-03 19:25:29 +02:00
|
|
|
volumes:
|
|
|
|
- ./data/db:/var/lib/mysql
|
2018-10-06 21:50:41 +02:00
|
|
|
- ./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-04 20:57:23 +01:00
|
|
|
lbrynet:
|
2018-10-11 02:58:23 +02:00
|
|
|
ipv4_address: 10.5.1.3
|
2018-11-04 20:35:35 +01:00
|
|
|
env_file:
|
|
|
|
- ./.env
|
2018-10-03 22:14:53 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.expose=false"
|
|
|
|
expose:
|
|
|
|
- 6300
|
|
|
|
depends_on:
|
|
|
|
- mysql
|