Added homeautomation docker stuff
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
cf4c1f5b4a
commit
c7ad99f5fe
3 changed files with 72 additions and 0 deletions
12
home-automation/init.sh
Executable file
12
home-automation/init.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
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-)"
|
||||
ENV
|
||||
|
||||
docker-compose up
|
Loading…
Add table
Add a link
Reference in a new issue