homeserver/smartHome/docker-compose.yaml

57 lines
1.5 KiB
YAML
Raw Normal View History

2021-01-09 20:40:51 +01:00
services:
homeassistant:
image: ghcr.io/home-assistant/home-assistant:stable
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"
- "docker.group=smartHome"
2021-01-09 20:40:51 +01:00
mqttbroker:
image: eclipse-mosquitto:2.0
restart: unless-stopped
2021-01-09 20:40:51 +01:00
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:
2021-01-09 20:40:51 +01:00
restart: unless-stopped
image: koenkk/zigbee2mqtt
2021-01-09 20:40:51 +01:00
volumes:
- ${VOLUMES_PATH}/smartHome/zigbee2mqtt:/app/data
- /run/udev:/run/udev:ro
2021-01-09 20:40:51 +01:00
environment:
- TZ=Europe/Berlin
devices:
2023-12-02 20:39:15 +01:00
- ${ZIGBEE_DEVICE}:/dev/ttyACM0
networks:
- web
2021-01-09 20:40:51 +01:00
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