2021-01-09 20:40:51 +01:00
|
|
|
services:
|
|
|
|
|
|
|
|
homeassistant:
|
2024-05-17 09:09:27 +02:00
|
|
|
image: ghcr.io/home-assistant/home-assistant:${HASSI_VERSION}
|
2021-01-09 20:40:51 +01:00
|
|
|
volumes:
|
2023-11-29 11:22:19 +01:00
|
|
|
- ${VOLUMES_PATH}/smartHome/homeassistent:/config
|
2023-01-12 10:03:26 +01:00
|
|
|
- /run/dbus:/run/dbus:ro
|
2021-01-09 20:40:51 +01:00
|
|
|
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"
|
2021-03-16 22:15:47 +01:00
|
|
|
- "docker.group=smartHome"
|
2021-01-09 20:40:51 +01:00
|
|
|
|
2024-10-08 13:18:15 +02:00
|
|
|
|
2023-08-01 21:28:23 +02:00
|
|
|
mqttbroker:
|
2024-05-17 09:09:27 +02:00
|
|
|
image: eclipse-mosquitto:${MOSQUITTO_VERSION}
|
2023-08-01 21:28:23 +02:00
|
|
|
restart: unless-stopped
|
2024-10-08 13:18:15 +02:00
|
|
|
networks:
|
|
|
|
- smarthome
|
|
|
|
ports:
|
|
|
|
- 1883:1883 # mqtt over TCP
|
2023-08-01 21:28:23 +02:00
|
|
|
# - 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:
|
2021-01-09 20:40:51 +01:00
|
|
|
restart: unless-stopped
|
2023-08-01 21:28:23 +02:00
|
|
|
image: koenkk/zigbee2mqtt
|
2021-01-09 20:40:51 +01:00
|
|
|
volumes:
|
2023-08-01 21:28:23 +02:00
|
|
|
- ${VOLUMES_PATH}/smartHome/zigbee2mqtt:/app/data
|
|
|
|
- /run/udev:/run/udev:ro
|
2021-01-09 20:40:51 +01:00
|
|
|
environment:
|
|
|
|
- TZ=Europe/Berlin
|
2023-08-01 21:28:23 +02:00
|
|
|
devices:
|
2023-12-02 20:39:15 +01:00
|
|
|
- ${ZIGBEE_DEVICE}:/dev/ttyACM0
|
2023-08-01 21:28:23 +02:00
|
|
|
networks:
|
|
|
|
- web
|
2024-10-08 13:18:15 +02:00
|
|
|
- smarthome
|
2021-01-09 20:40:51 +01:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-08-01 21:28:23 +02:00
|
|
|
- "traefik.http.routers.zigbee2mqtt.rule=Host(`zigbee2mqtt.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.zigbee2mqtt.entrypoints=web"
|
|
|
|
- "traefik.http.services.zigbee2mqtt.loadbalancer.server.port=8080"
|
2021-03-16 22:15:47 +01:00
|
|
|
- "docker.group=smartHome"
|
2023-08-01 21:28:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|
2024-10-08 13:18:15 +02:00
|
|
|
smarthome:
|