Rearrange docker stuff
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
bc45d6f1d6
commit
a376294eb7
7 changed files with 7 additions and 162 deletions
1
docker/homeautomation/.gitignore
vendored
Normal file
1
docker/homeautomation/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.env
|
74
docker/homeautomation/docker-compose.yml
Normal file
74
docker/homeautomation/docker-compose.yml
Normal file
|
@ -0,0 +1,74 @@
|
|||
version: '3'
|
||||
services:
|
||||
home-assistant:
|
||||
environment:
|
||||
TZ: 'Europe/Helsinki'
|
||||
container_name: home-assistant
|
||||
restart: always
|
||||
image: homeassistant/home-assistant
|
||||
volumes:
|
||||
- /docker/homeautomation/home-assistant:/config
|
||||
network_mode: host
|
||||
depends_on:
|
||||
- deconz
|
||||
- mosquitto
|
||||
|
||||
deconz:
|
||||
container_name: deconz
|
||||
image: marthoc/deconz
|
||||
restart: always
|
||||
environment:
|
||||
DECONZ_WEB_PORT: 8083
|
||||
DECONZ_WS_PORT: 8084
|
||||
DECONZ_VNC_PORT: 5901
|
||||
DECONZ_VNC_MODE: 1
|
||||
DECONZ_VNC_PASSWORD: '${DECONZ_VNC_PASSWORD}'
|
||||
DEBUG_OTAU: 1
|
||||
network_mode: host
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /docker/homeautomation/deconz:/root/.local/share/dresden-elektronik/deCONZ
|
||||
devices:
|
||||
- /dev/ttyACM0
|
||||
|
||||
node-red:
|
||||
container_name: node-red
|
||||
image: nodered/node-red
|
||||
restart: always
|
||||
environment:
|
||||
TZ: 'Europe/Helsinki'
|
||||
ports:
|
||||
- '1880:1880'
|
||||
volumes:
|
||||
- /docker/homeautomation/node-red:/data
|
||||
depends_on:
|
||||
- home-assistant
|
||||
|
||||
portainer:
|
||||
container_name: portainer
|
||||
image: portainer/portainer
|
||||
restart: always
|
||||
ports:
|
||||
- '9000:9000'
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /docker/homeautomation/portainer:/data
|
||||
|
||||
mosquitto:
|
||||
container_name: mosquitto
|
||||
image: eclipse-mosquitto
|
||||
restart: always
|
||||
network_mode: host
|
||||
volumes:
|
||||
- /docker/homeautomation/mosquitto:/mosquitto
|
||||
|
||||
mariadb:
|
||||
container_name: mariadb
|
||||
image: mariadb
|
||||
restart: always
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||
ports:
|
||||
- '3308:3306'
|
||||
volumes:
|
||||
- /docker/homeautomation/mariadb:/var/lib/mysql
|
8
docker/homeautomation/init.sh
Executable file
8
docker/homeautomation/init.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
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 -d
|
Loading…
Add table
Add a link
Reference in a new issue