lbry-docker/chainquery/docker-compose.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

version: '3.4'
networks:
2018-10-02 23:24:42 +02:00
lbrynet:
external: true
services:
################
## Chainquery ##
################
chainquery:
build: .
restart: always
networks:
2018-10-02 23:25:19 +02:00
lbrynet:
2018-10-02 23:28:35 +02:00
ipv4_address: 10.10.0.2
labels:
- "traefik.expose=false"
expose:
2018-10-03 20:25:56 +02:00
- 6300
2018-10-03 20:24:05 +02:00
- 3306
2018-10-03 19:25:29 +02:00
#############
## MariaDB ##
#############
## https://hub.docker.com/r/_/mariadb/
mysql:
image: mariadb
restart: always
2018-10-03 20:27:13 +02:00
networks:
lbrynet:
ipv4_address: 10.10.0.10
aliases:
- mysql
2018-10-03 19:25:29 +02:00
environment:
## These variables are stored in the .env file next to this docker-compose.yml file.
## I will include a default .env file and .gitignore the ".env" pattern so you should be able to just git pull in the future if you need to.
2018-10-03 19:48:37 +02:00
MYSQL_SERVER: ${MYSQL_SERVER:-10.10.0.10}
MYSQL_USER: ${MYSQL_USER:-changeme}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-changeme}
MYSQL_DATABASE: ${MYSQL_DATABASE:-changeme}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-changeme}
2018-10-03 19:25:29 +02:00
expose:
- 3306
volumes:
- ./data/db:/var/lib/mysql