Skip to main content

Installation

Home Assistant can be installed by following the Portainer guide for creating a new stack.  Learn about configuring a Docker stacks and then use the following Docker Compose code to run this app:

---
services:
  home-assistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      # Persistent Data
      - /srv/home-assistant/:/config

      # Hardware Access
      - /run/dbus:/run/dbus:ro
    restart: unless-stopped
    environment:
      - TZ=America/Vancouver
    privileged: true
    network_mode: host