2018-09-30 22:21:46 +02:00
## 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/
2018-06-02 17:15:08 +02:00
2018-06-01 02:08:19 +02:00
version : '3.4'
services :
2018-06-01 22:42:56 +02:00
############
## Speech ##
############
2018-06-02 18:00:53 +02:00
speech :
2018-06-02 16:53:41 +02:00
build :
context : .
dockerfile : Dockerfile
2018-06-01 02:08:19 +02:00
restart : always
ports :
- 3000 : 3000
volumes :
2018-09-30 22:21:46 +02:00
- ./data/speech:/data
2018-06-01 22:42:56 +02:00
networks :
green :
2018-10-09 20:33:47 +02:00
ipv4_address : 10.5 .1 .6
2018-06-01 22:42:56 +02:00
aliases :
- speech
#############
## Lbrynet ##
#############
2018-10-09 20:33:47 +02:00
traefik :
2018-06-02 16:53:41 +02:00
build :
context : ../lbrynet-daemon/
dockerfile : Dockerfile
2018-06-01 22:42:56 +02:00
restart : always
2018-09-30 22:21:46 +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.
MYSQL_SERVER : ${MYSQL_SERVER}
MYSQL_USER : ${MYSQL_USER}
MYSQL_PASSWORD : ${MYSQL_PASSWORD}
MYSQL_DATABASE : ${MYSQL_DATABASE}
MYSQL_ROOT_PASSWORD : ${MYSQL_ROOT_PASSWORD}
2018-06-01 22:42:56 +02:00
ports :
- 4444 : 4444
- 50001 : 50001
## host volumes for persistent data such as wallet private keys.
volumes :
2018-10-09 20:33:47 +02:00
- ./data/traefik:/data
2018-06-01 22:42:56 +02:00
networks :
green :
2018-10-09 20:33:47 +02:00
ipv4_address : 10.5 .1 .7
2018-06-01 22:42:56 +02:00
aliases :
- lbrynet
#############
## MariaDB ##
#############
## https://hub.docker.com/r/_/mariadb/
mysql :
image : mariadb
restart : always
environment :
2018-09-30 22:21:46 +02:00
## 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
2018-06-01 22:42:56 +02:00
ports :
- 3306 : 3306
2018-06-02 17:15:08 +02:00
volumes :
2018-09-30 22:21:46 +02:00
- ./data/db:/var/lib/mysql
2018-06-01 22:42:56 +02:00
networks :
green :
2018-10-09 20:33:47 +02:00
ipv4_address : 10.5 .1 .8
2018-06-01 22:42:56 +02:00
aliases :
- mysql
#########################
## Network Definitions ##
#########################
networks :
green :
driver : bridge
ipam :
config :
2018-10-09 20:33:47 +02:00
- subnet : 10.5 .1 .0 /16