name: homeassistant

services:
  homeassistant:
    image: ghcr.io/home-assistant/home-assistant:stable
    container_name: homeassistant
    restart: unless-stopped
    network_mode: host
    volumes:
      - /mnt/docker-ssd/docker/appdata/homeassistant:/config
    environment:
      - TZ=America/Chicago
    healthcheck:
      test: ["CMD-SHELL", "curl -sf http://127.0.0.1:8123/ || exit 1"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 60s
