2018-06-01 02:08:19 +02:00
|
|
|
## To-Do:
|
2018-06-01 22:42:56 +02:00
|
|
|
# This docker-compose.yml file will be for spinning up a basic instance.
|
|
|
|
# You likely won't want to run this in production but its to get it up and going.
|
2018-06-02 17:15:08 +02:00
|
|
|
# If you want to run this in production to-do:
|
|
|
|
# * [ ] Front end reverse proxy like caddy, nginx or traefik.
|
|
|
|
# * [ ] Security assessment and adjustments to suit your environment.
|
|
|
|
|
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-06-02 16:53:41 +02:00
|
|
|
- ../data/spee.ch:/data
|
2018-06-01 22:42:56 +02:00
|
|
|
networks:
|
|
|
|
green:
|
|
|
|
ipv4_address: 10.5.0.6
|
|
|
|
aliases:
|
|
|
|
- speech
|
|
|
|
|
|
|
|
#############
|
|
|
|
## Lbrynet ##
|
|
|
|
#############
|
|
|
|
lbrynet:
|
2018-06-02 16:53:41 +02:00
|
|
|
build:
|
|
|
|
context: ../lbrynet-daemon/
|
|
|
|
dockerfile: Dockerfile
|
2018-06-01 22:42:56 +02:00
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 4444:4444
|
|
|
|
- 50001:50001
|
|
|
|
## host volumes for persistent data such as wallet private keys.
|
|
|
|
volumes:
|
2018-06-02 16:53:41 +02:00
|
|
|
- ../data/lbrynet:/data
|
2018-06-01 22:42:56 +02:00
|
|
|
networks:
|
|
|
|
green:
|
|
|
|
ipv4_address: 10.5.0.7
|
|
|
|
aliases:
|
|
|
|
- lbrynet
|
|
|
|
|
|
|
|
#############
|
|
|
|
## MariaDB ##
|
|
|
|
#############
|
|
|
|
## https://hub.docker.com/r/_/mariadb/
|
|
|
|
mysql:
|
|
|
|
image: mariadb
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
MYSQL_SERVER: 10.5.0.8
|
|
|
|
MYSQL_USER: replaceme
|
|
|
|
MYSQL_PASSWORD: REPLACEME
|
|
|
|
MYSQL_DATABASE: speech
|
|
|
|
MYSQL_ROOT_PASSWORD: REPLACEME
|
|
|
|
expose:
|
|
|
|
- 3306
|
|
|
|
ports:
|
|
|
|
- 3306:3306
|
2018-06-02 17:15:08 +02:00
|
|
|
volumes:
|
|
|
|
- ../data/db:/var/lib/mysql
|
2018-06-01 22:42:56 +02:00
|
|
|
networks:
|
|
|
|
green:
|
|
|
|
ipv4_address: 10.5.0.8
|
|
|
|
aliases:
|
|
|
|
- mysql
|
|
|
|
|
|
|
|
#########################
|
|
|
|
## Network Definitions ##
|
|
|
|
#########################
|
|
|
|
networks:
|
|
|
|
green:
|
|
|
|
driver: bridge
|
|
|
|
ipam:
|
|
|
|
config:
|
|
|
|
- subnet: 10.5.0.0/16
|