Skip to content

Instantly share code, notes, and snippets.

@parkan
Last active April 26, 2026 15:00
Show Gist options
  • Select an option

  • Save parkan/a729c8ee0928a8793d129f1ae3031eb8 to your computer and use it in GitHub Desktop.

Select an option

Save parkan/a729c8ee0928a8793d129f1ae3031eb8 to your computer and use it in GitHub Desktop.
Home Assistant on TrueNAS Scale (custom-compose, host network, sqlite, HACS auto-install)
services:
home-assistant:
image: ghcr.io/home-assistant/home-assistant:stable
container_name: home-assistant
restart: unless-stopped
network_mode: host
privileged: true
environment:
- TZ=Etc/UTC
volumes:
- /mnt/.ix-apps/app_mounts/home-assistant/config:/config
- /mnt/.ix-apps/app_mounts/home-assistant/media:/media
- /run/dbus:/run/dbus:ro
entrypoint:
- /bin/bash
- -c
- |
if [ ! -d /config/custom_components/hacs ]; then
wget -q -O - https://get.hacs.xyz | bash -
fi
exec /init
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:8123/"]
interval: 30s
timeout: 5s
retries: 5
start_period: 60s
x-portals:
- host: 0.0.0.0
name: Web UI
path: /
port: 8123
scheme: http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment