foodotfiles/docker/homeautomation/docker-compose.yml

66 lines
1.5 KiB
YAML
Raw Normal View History

version: '3'
services:
home-assistant:
container_name: home-assistant
restart: always
image: homeassistant/home-assistant
volumes:
- /docker/homeautomation/home-assistant:/config
2020-02-04 15:23:04 +00:00
- /etc/localtime:/etc/localtime:ro
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:
- /docker/homeautomation/deconz:/root/.local/share/dresden-elektronik/deCONZ
2020-02-04 15:23:04 +00:00
- /etc/localtime:/etc/localtime:ro
devices:
- /dev/ttyACM0
node-red:
container_name: node-red
image: nodered/node-red
restart: always
ports:
- '1880:1880'
volumes:
- /docker/homeautomation/node-red:/data
2020-02-04 15:23:04 +00:00
- /etc/localtime:/etc/localtime:ro
depends_on:
- home-assistant
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto
restart: always
network_mode: host
volumes:
- /docker/homeautomation/mosquitto:/mosquitto
2020-02-04 15:23:04 +00:00
- /etc/localtime:/etc/localtime:ro
mariadb:
2020-02-02 19:14:37 +00:00
container_name: mariadb-hass
image: mariadb
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
ports:
- '3308:3306'
volumes:
- /docker/homeautomation/mariadb:/var/lib/mysql
2020-02-04 15:23:04 +00:00
- /etc/localtime:/etc/localtime:ro