f6ef0f77a8
Updated comments for clarity and usage cases Corrected pathing for host volumes Applied envvars from the neighboring .env file :100644 10064494820c6
0b49a14
M www.spee.ch/docker-compose.yml
89 lines
2.5 KiB
YAML
89 lines
2.5 KiB
YAML
## This docker-compose.yml file should serve as an example to help you test out spee.ch
|
|
## If this works fine in your environment you may potentially run from this file but it may change in the future.
|
|
## Ideally if you need to modify the settings in this file you could create a docker-compose.override.yml containing only values you wish to override from this one.
|
|
## Documentation on compose overrides: https://docs.docker.com/compose/extends/
|
|
|
|
version: '3.4'
|
|
services:
|
|
############
|
|
## Speech ##
|
|
############
|
|
speech:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
restart: always
|
|
ports:
|
|
- 3000:3000
|
|
volumes:
|
|
- ./data/speech:/data
|
|
networks:
|
|
green:
|
|
ipv4_address: 10.5.0.6
|
|
aliases:
|
|
- speech
|
|
|
|
#############
|
|
## Lbrynet ##
|
|
#############
|
|
lbrynet:
|
|
build:
|
|
context: ../lbrynet-daemon/
|
|
dockerfile: Dockerfile
|
|
restart: always
|
|
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.
|
|
MYSQL_SERVER: ${MYSQL_SERVER}
|
|
MYSQL_USER: ${MYSQL_USER}
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
|
ports:
|
|
- 4444:4444
|
|
- 50001:50001
|
|
## host volumes for persistent data such as wallet private keys.
|
|
volumes:
|
|
- ./data/lbrynet:/data
|
|
networks:
|
|
green:
|
|
ipv4_address: 10.5.0.7
|
|
aliases:
|
|
- lbrynet
|
|
|
|
#############
|
|
## MariaDB ##
|
|
#############
|
|
## https://hub.docker.com/r/_/mariadb/
|
|
mysql:
|
|
image: mariadb
|
|
restart: always
|
|
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.
|
|
MYSQL_SERVER: ${MYSQL_SERVER}
|
|
MYSQL_USER: ${MYSQL_USER}
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
|
# expose:
|
|
# - 3306
|
|
ports:
|
|
- 3306:3306
|
|
volumes:
|
|
- ./data/db:/var/lib/mysql
|
|
networks:
|
|
green:
|
|
ipv4_address: 10.5.0.8
|
|
aliases:
|
|
- mysql
|
|
|
|
#########################
|
|
## Network Definitions ##
|
|
#########################
|
|
networks:
|
|
green:
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 10.5.0.0/16
|