diff --git a/homeassistant/docker-compose.yml b/homeassistant/docker-compose.yml new file mode 100644 index 0000000..30e84da --- /dev/null +++ b/homeassistant/docker-compose.yml @@ -0,0 +1,46 @@ +version: '3.8' +services: + + homeassistant: + image: ghcr.io/home-assistant/home-assistant:stable + container_name: homeassistant + volumes: + - ./volumes/homeassistant/config:/config + - /etc/localtime:/etc/localtime:ro + environment: + - TZ=Europe/Berlin + network_mode: host + restart: unless-stopped + + zigbee2mqtt: + image: koenkk/zigbee2mqtt + container_name: zigbee2mqtt + group_add: + - dialout + ports: + - 127.0.0.1:38080:8080 + volumes: + - ./volumes/zigbee2mqtt/data:/app/data + - /run/udev:/run/udev:ro + environment: + - TZ=Europe/Berlin + devices: + # Make sure this matched your adapter location + - /dev/ttyACM0:/dev/ttyACM0 + restart: unless-stopped + + mqtt: + image: eclipse-mosquitto:2.0 + container_name: mqtt + command: "mosquitto -c /mosquitto-no-auth.conf" + ports: + - 127.0.0.1:1883:1883 + # Websocket Port + #- 127.0.0.1:9001:9001 + volumes: + - ./volumes/mosquitto/conf:/mosquitto/conf + - ./volumes/mosquitto/data:/mosquitto/data + - ./volumes/mosquitto/logs:/mosquitto/log + environment: + - TZ=Europe/Berlin + restart: unless-stopped \ No newline at end of file