homeserver/smartHome/docker-compose.yaml

57 lines
1.5 KiB
YAML
Raw Normal View History

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