52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
services:
|
|
|
|
homeassistant:
|
|
image: ghcr.io/home-assistant/home-assistant:${HASSI_VERSION}
|
|
volumes:
|
|
- ${VOLUMES_PATH}/smartHome/homeassistent:/config
|
|
- /run/dbus:/run/dbus:ro
|
|
environment:
|
|
- TZ=Europe/Berlin
|
|
restart: unless-stopped
|
|
network_mode: host
|
|
labels:
|
|
- "docker.group=smartHome"
|
|
|
|
|
|
mqttbroker:
|
|
image: eclipse-mosquitto:${MOSQUITTO_VERSION}
|
|
restart: unless-stopped
|
|
networks:
|
|
- smarthome
|
|
ports:
|
|
- 1883:1883 # mqtt over TCP
|
|
# - 9001:9001 # Websockets
|
|
volumes:
|
|
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
|
|
- ${VOLUMES_PATH}/smartHome/mosquitto/data:/mosquitto/data
|
|
- ${VOLUMES_PATH}/smartHome/mosquitto/log:/mosquitto/log
|
|
labels:
|
|
- "docker.group=smartHome"
|
|
|
|
|
|
zigbee2mqtt:
|
|
restart: unless-stopped
|
|
image: koenkk/zigbee2mqtt
|
|
volumes:
|
|
- ${VOLUMES_PATH}/smartHome/zigbee2mqtt:/app/data
|
|
- /run/udev:/run/udev:ro
|
|
environment:
|
|
- TZ=Europe/Berlin
|
|
devices:
|
|
- ${ZIGBEE_DEVICE}:/dev/ttyACM0
|
|
networks:
|
|
- web
|
|
- smarthome
|
|
labels:
|
|
- "docker.group=smartHome"
|
|
|
|
|
|
networks:
|
|
web:
|
|
external: true
|
|
smarthome:
|