---
version: "2"
services:
homeassistant:
image: linuxserver/homeassistant:2024.11.2
container_name: homeassistant
network_mode: host
restart: unless-stopped
environment:
- TZ=Europe/London # Specify a timezone to use
- PUID=1000 # User ID to run as
- PGID=1000 # Group ID to run as
volumes:
- /host/path/to/config:/config # Contains all relevant configuration files.
devices:
- /path/to/device:/path/to/device # For passing through USB, serial or gpio devices.