version: '3' services: homeassistant: container_name: homeassistant image: "ghcr.io/home-assistant/home-assistant:stable" volumes: - /srv/HomeAssistant/data:/config - /srv/HomeAssistant/.ssh:/root/.ssh - /srv/HomeAssistant/.my.cnf:/root/.my.cnf:ro - /etc/localtime:/etc/localtime:ro - /run/dbus:/run/dbus:ro restart: unless-stopped privileged: true network_mode: host