services: homeassistant: container_name: homeassistant hostname: homeassistant image: "ghcr.io/home-assistant/home-assistant:stable" volumes: - /portainer/homeassistant:/config - /etc/localtime:/etc/localtime:ro - /run/dbus:/run/dbus:ro restart: unless-stopped privileged: true networks: - nginx ports: - "8123:8123" networks: nginx: external: true