Updated docker-compose.yml for spee.ch
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
This commit is contained in:
parent
0188954a8e
commit
05765e902c
1 changed files with 24 additions and 16 deletions
|
@ -1,9 +1,7 @@
|
||||||
## To-Do:
|
## This docker-compose.yml file should serve as an example to help you test out spee.ch
|
||||||
# This docker-compose.yml file will be for spinning up a basic instance.
|
## If this works fine in your environment you may potentially run from this file but it may change in the future.
|
||||||
# You likely won't want to run this in production but its to get it up and going.
|
## 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.
|
||||||
# If you want to run this in production to-do:
|
## Documentation on compose overrides: https://docs.docker.com/compose/extends/
|
||||||
# * [ ] Front end reverse proxy like caddy, nginx or traefik.
|
|
||||||
# * [ ] Security assessment and adjustments to suit your environment.
|
|
||||||
|
|
||||||
version: '3.4'
|
version: '3.4'
|
||||||
services:
|
services:
|
||||||
|
@ -18,7 +16,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
volumes:
|
volumes:
|
||||||
- ../data/spee.ch:/data
|
- ./data/speech:/data
|
||||||
networks:
|
networks:
|
||||||
green:
|
green:
|
||||||
ipv4_address: 10.5.0.6
|
ipv4_address: 10.5.0.6
|
||||||
|
@ -33,12 +31,20 @@ services:
|
||||||
context: ../lbrynet-daemon/
|
context: ../lbrynet-daemon/
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
restart: always
|
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:
|
ports:
|
||||||
- 4444:4444
|
- 4444:4444
|
||||||
- 50001:50001
|
- 50001:50001
|
||||||
## host volumes for persistent data such as wallet private keys.
|
## host volumes for persistent data such as wallet private keys.
|
||||||
volumes:
|
volumes:
|
||||||
- ../data/lbrynet:/data
|
- ./data/lbrynet:/data
|
||||||
networks:
|
networks:
|
||||||
green:
|
green:
|
||||||
ipv4_address: 10.5.0.7
|
ipv4_address: 10.5.0.7
|
||||||
|
@ -53,17 +59,19 @@ services:
|
||||||
image: mariadb
|
image: mariadb
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
MYSQL_SERVER: 10.5.0.8
|
## These variables are stored in the .env file next to this docker-compose.yml file.
|
||||||
MYSQL_USER: replaceme
|
## 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_PASSWORD: REPLACEME
|
MYSQL_SERVER: ${MYSQL_SERVER}
|
||||||
MYSQL_DATABASE: speech
|
MYSQL_USER: ${MYSQL_USER}
|
||||||
MYSQL_ROOT_PASSWORD: REPLACEME
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||||
expose:
|
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
||||||
- 3306
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||||
|
# expose:
|
||||||
|
# - 3306
|
||||||
ports:
|
ports:
|
||||||
- 3306:3306
|
- 3306:3306
|
||||||
volumes:
|
volumes:
|
||||||
- ../data/db:/var/lib/mysql
|
- ./data/db:/var/lib/mysql
|
||||||
networks:
|
networks:
|
||||||
green:
|
green:
|
||||||
ipv4_address: 10.5.0.8
|
ipv4_address: 10.5.0.8
|
||||||
|
|
Loading…
Reference in a new issue