2019-10-27 11:44:08 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
home-assistant:
|
2019-10-27 13:14:27 +00:00
|
|
|
environment:
|
|
|
|
TZ: "Europe/Helsinki"
|
2019-10-27 11:44:08 +00:00
|
|
|
container_name: home-assistant
|
|
|
|
image: homeassistant/home-assistant
|
|
|
|
volumes:
|
|
|
|
- /homeautomation-config/home-assistant:/config
|
2019-10-27 13:14:27 +00:00
|
|
|
restart: always
|
2019-10-27 11:44:08 +00:00
|
|
|
network_mode: host
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- deconz
|
|
|
|
|
|
|
|
mariadb:
|
|
|
|
image: mariadb/server:10.3
|
|
|
|
container_name: mariadb
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
|
|
|
|
MYSQL_DATABASE: ha_db
|
|
|
|
MYSQL_PASSWORD: "${HA_MYSQL_PASSWORD}"
|
|
|
|
volumes:
|
|
|
|
- /homeautomation-config/mariadb:/var/lib/mysql
|
|
|
|
ports:
|
2019-10-27 13:14:27 +00:00
|
|
|
- "8036:3306"
|
2019-10-27 11:44:08 +00:00
|
|
|
|
|
|
|
deconz:
|
|
|
|
container_name: deconz
|
|
|
|
image: marthoc/deconz
|
|
|
|
restart: always
|
|
|
|
environment:
|
2019-10-27 13:14:27 +00:00
|
|
|
DECONZ_VNC_MODE: 0
|
|
|
|
DECONZ_VNC_PORT: 5901
|
2019-10-27 11:44:08 +00:00
|
|
|
DECONZ_VNC_PASSWORD: "${DECONZ_VNC_PASSWORD}"
|
2019-10-27 13:14:27 +00:00
|
|
|
network_mode: host
|
2019-10-27 11:44:08 +00:00
|
|
|
ports:
|
|
|
|
- "8083:80"
|
|
|
|
- "8084:443"
|
2019-10-27 13:14:27 +00:00
|
|
|
- "5901:5901"
|
2019-10-27 11:44:08 +00:00
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /homeautomation-config/deconz:/root/.local/share/dresden-elektronik/deCONZ
|
|
|
|
devices:
|
2019-10-27 13:14:27 +00:00
|
|
|
- /dev/ttyACM0
|
2019-10-27 11:44:08 +00:00
|
|
|
|
2019-10-27 13:14:27 +00:00
|
|
|
node-red:
|
2019-10-27 13:28:28 +00:00
|
|
|
container_name: node-red
|
2019-10-27 11:44:08 +00:00
|
|
|
image: nodered/node-red
|
2019-10-27 13:14:27 +00:00
|
|
|
network_mode: host
|
2019-10-27 11:44:08 +00:00
|
|
|
ports:
|
|
|
|
- "1880:1880"
|
|
|
|
volumes:
|
|
|
|
- /homeautomation-config/node-red:/data
|
|
|
|
depends_on:
|
|
|
|
- home-assistant
|
|
|
|
environment:
|
|
|
|
TZ: "Europe/Helsinki"
|
|
|
|
restart: unless-stopped
|
2019-10-27 13:14:27 +00:00
|
|
|
|
|
|
|
portainer:
|
|
|
|
container_name: portainer
|
|
|
|
image: portainer/portainer
|
|
|
|
ports:
|
|
|
|
- "9000:9000"
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- /homeautomation-config/portainer:/data
|