58 lines
1.6 KiB
YAML
58 lines
1.6 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:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.hassi.rule=Host(`hassi.${DOMAIN}`)"
|
|
- "traefik.http.routers.hassi.entrypoints=web"
|
|
- "traefik.http.services.hassi.loadbalancer.server.port=8123"
|
|
- "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
|
|
|
|
|
|
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:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.zigbee2mqtt.rule=Host(`zigbee2mqtt.${DOMAIN}`)"
|
|
- "traefik.http.routers.zigbee2mqtt.entrypoints=web"
|
|
- "traefik.http.services.zigbee2mqtt.loadbalancer.server.port=8080"
|
|
- "docker.group=smartHome"
|
|
|
|
|
|
networks:
|
|
web:
|
|
external: true
|
|
smarthome:
|