services: homeassistant: image: ghcr.io/home-assistant/home-assistant:stable container_name: homeassistant restart: unless-stopped # Host networking lets HA discover devices via mDNS, SSDP and DHCP. # Swap it for a ports mapping if you only use cloud/MQTT integrations. network_mode: host privileged: true environment: - TZ=${TZ:-Europe/Berlin} volumes: - ${DATA_PATH:-/srv/homeassistant}:/config - /run/dbus:/run/dbus:ro # Uncomment to pass through a Zigbee/Z-Wave USB stick: # devices: # - /dev/ttyUSB0:/dev/ttyUSB0