From 9db9dec1e5e8b0b0f220d5db89e807c712ec57a3 Mon Sep 17 00:00:00 2001 From: Stefan Ostermann Date: Tue, 28 Jan 2025 16:04:53 +0000 Subject: [PATCH] hass --- hass/docker-compose.yml | 64 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 hass/docker-compose.yml diff --git a/hass/docker-compose.yml b/hass/docker-compose.yml new file mode 100644 index 0000000..d26e4d3 --- /dev/null +++ b/hass/docker-compose.yml @@ -0,0 +1,64 @@ +version: "3.8" +services: +# raspberrymatic: +# image: ghcr.io/jens-maus/raspberrymatic:latest +# container_name: ccu +# hostname: homematic-raspi +# privileged: true +# restart: unless-stopped +# stop_grace_period: 30s +# volumes: +# - ccu_data:/usr/local:rw +# - /lib/modules:/lib/modules:ro +# - ./tools:/usr/local/addons/tools/ +# ports: +# - "8080:80" +# - "2001:2001" +# - "2010:2010" +# - "9292:9292" +# - "8181:8181" + + homeassistant: + container_name: homeassistant + image: homeassistant/home-assistant:2025.1.4 + volumes: + - ./homeassistant:/config + - /etc/localtime:/etc/localtime:ro + restart: unless-stopped + network_mode: host #due to wake on lan. mqtt is now localhost. Ports:8123,8060,8883 + + # see https://community.home-assistant.io/t/migration-to-2021-7-fails-fatal-python-error-init-interp-main-cant-initialize-time/320648/28 + security_opt: + - seccomp:unconfined + labels: + - "traefik.enable=true" + + #mqtt for the milight bridge + mqtt: + image: eclipse-mosquitto:2.0.20 + container_name: mqtt + restart: unless-stopped + volumes: + - ./mosquitto/config:/mosquitto/config + - ./mosquitto/data:/mosquitto/data + - ./mosquitto/log:/mosquitto/log + ports: + - "1883:1883" + - "9001:9001" + + zigbee2mqtt: + container_name: zigbee2mqtt + restart: unless-stopped + devices: +# - /dev/ttyACM0:/dev/ttyACM0 + - /dev/ttyACM0:/dev/ttyACM0 + ports: + - "8080:8080" + volumes: + - ./zb2mqttdata:/app/data + - /run/udev:/run/udev:ro + environment: + - TZ=Europe/Amsterdam + image: koenkk/zigbee2mqtt:2.0.0 + links: + - "mqtt:mqtt"