homeserver/smartHome/docker-compose.yaml

59 lines
1.6 KiB
YAML
Raw Normal View History

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"
- "docker.group=smartHome"
2021-01-09 20:40:51 +01:00
2024-10-08 13:18:15 +02:00
mqttbroker:
2024-05-17 09:09:27 +02:00
image: eclipse-mosquitto:${MOSQUITTO_VERSION}
restart: unless-stopped
2024-10-08 13:18:15 +02:00
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:
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
2024-10-08 13:18:15 +02:00
- smarthome
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
2024-10-08 13:18:15 +02:00
smarthome: