mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-01 03:20:29 +00:00
Added mariadb
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
4624d9269f
commit
309e63fec0
@ -73,3 +73,12 @@ services:
|
||||
- /homeautomation-config/snips/log/:/var/log
|
||||
- /homeautomation-config/snips/snips.toml:/etc/snips.toml
|
||||
- /homeautomation-config/snips/assistant:/usr/share/snips
|
||||
|
||||
mariadb:
|
||||
container_name: snips
|
||||
image: mariadb
|
||||
restart: always
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||
ports:
|
||||
- '3308:3306'
|
||||
|
@ -4,9 +4,9 @@ sudo mkdir -p /homeautomation-config/node-red
|
||||
sudo chmod -R a+rw /homeautomation-config/node-red
|
||||
|
||||
cat <<ENV > .env
|
||||
MYSQL_ROOT_PASSWORD="$(pass reekynet/docker-home-automation | rg 'MYSQL_ROOT_PASSWORD' | cut -d' ' -f2-)"
|
||||
HA_MYSQL_PASSWORD="$(pass reekynet/docker-home-automation | rg 'HA_MYSQL_PASSWORD' | cut -d' ' -f2-)"
|
||||
DECONZ_VNC_PASSWORD="$(pass reekynet/docker-home-automation | rg 'DECONZ_VNC_PASSWORD' | cut -d' ' -f2-)"
|
||||
MYSQL_ROOT_PASSWORD=$(pass reekynet/docker-home-automation | rg 'MYSQL_ROOT_PASSWORD' | cut -d' ' -f2-)
|
||||
HA_MYSQL_PASSWORD="$(pass reekynet/docker-home-automation | rg 'HA_MYSQL_PASSWORD' | cut -d' ' -f2-)
|
||||
DECONZ_VNC_PASSWORD=$(pass reekynet/docker-home-automation | rg 'DECONZ_VNC_PASSWORD' | cut -d' ' -f2-)
|
||||
ENV
|
||||
|
||||
docker-compose up -d
|
||||
|
Loading…
Reference in New Issue
Block a user