lbry-docker/chainquery/docker-compose.yml

50 lines
895 B
YAML
Raw Normal View History

version: '3.4'
networks:
2018-11-04 20:57:23 +01:00
lbrynet:
external: true
services:
###########
## 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:
ipv4_address: 10.5.1.10
2018-10-03 20:27:13 +02:00
aliases:
- mysql
env_file:
- .env
2018-10-03 19:25:29 +02:00
expose:
- 3306
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
################
## Chainquery ##
################
chainquery:
build:
context: .
target: app
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
env_file:
- ./.env
labels:
- "traefik.expose=false"
expose:
- 6300
depends_on:
- mysql