homeserver/smartHome/docker-compose.yaml

56 lines
1.5 KiB
YAML

services:
homeassistant:
image: ghcr.io/home-assistant/home-assistant:stable
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:2.0
restart: unless-stopped
network_mode: host
expose:
- 1883
#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
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