version: "3.9" services: homeassistant: image: homeassistant/home-assistant:2024.12.4 container_name: homeassistant privileged: true network_mode: host user: root expose: - "8123" volumes: - /volume5/storage/docker-data/homeassistant/data/:/config/ restart: always # networks: # vlan2: # ipv4_address: 192.168.2.17