--- services: homeassistant: image: lscr.io/linuxserver/homeassistant:latest container_name: homeassistant network_mode: host environment: - PUID=1000 - PGID=1000 - TZ=Europe/Amsterdam volumes: - ./data:/config - /var/run/dbus:/var/run/dbus:ro #devices: # - /path/to/device:/path/to/device #optional restart: unless-stopped cap_add: - NET_ADMIN - NET_RAW