services: homeassistant: image: "ghcr.io/home-assistant/home-assistant:stable" container_name: homeassistant privileged: true network_mode: host environment: - PUID=1000 - PGID=1000 - TZ=Europe/Kiyv cap_add: - NET_ADMIN - NET_RAW volumes: - /var/run/dbus:/var/run/dbus:z - .config:/config:z ports: - 8123:8123 #optional #devices: # - /path/to/device:/path/to/device #optional restart: unless-stopped