Hello, its finally time for me to take the plunge and move away from ZHA. I am just trying to confirm my docker compose is OK.
services:
homeassistant:
container_name: home-assistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /mnt/torrent/homeAssistant/config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
ports:
- 8123:8123
restart: unless-stopped
mosquitto:
container_name: mqtt-broker
image: eclipse-mosquitto:2.0
restart: unless-stopped
ports:
- "1883:1883"
volumes:
- /mnt/torrent/homeAssistant/mqtt/config:/mosquitto/config
- /mnt/torrent/homeAssistant/mqtt/data:/mosquitto/data
- /mnt/torrent/homeAssistant/mqtt/log:/mosquitto/log
command: mosquitto -c /mosquitto/config/mosquitto.conf
zigbee2mqtt:
container_name: zigbee2mqtt
image: ghcr.io/koenkk/zigbee2mqtt:latest
restart: unless-stopped
depends_on:
- mosquitto
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
volumes:
- /mnt/torrent/homeAssistant/zigbee2mqtt/data:/app/data
- /mnt/torrent/homeAssistant/zigbee2mqtt/config:/app/config
ports:
- "8081:8080"
environment:
- TZ=America/New_York
My main concern is the USB0 thing (it is what I used before, with HA, under the home assistant service, and it worked flawlessly). Is this the correct method? Do my volumes make senes? I'm sure I could just run this and see for myself but I am worried about things spiraling out of control a bit