Files
docker-compose/homeassistant/docker-compose.yml
Preston Hunter b4469c175e feat(homeassistant): Add initial Docker Compose setup for Home Assistant
This commit introduces the `docker-compose.yml` file for deploying Home Assistant.

The configuration defines the `homeassistant` service using the `linuxserver/homeassistant` image. It sets up:
- Persistent data storage at `/mnt/docker/home/homeassistant/data`.
- Environment variables for user IDs (PUID, PGID) and timezone.
- Required capabilities (`NET_ADMIN`, `NET_RAW`) for network functionality.
- Integration with existing `pangolin-home` and `teslamate-internal` external networks.

This allows for easy deployment and management of the Home Assistant instance.
2025-11-11 21:13:14 -05:00

29 lines
645 B
YAML

services:
homeassistant:
image: lscr.io/linuxserver/homeassistant:latest
container_name: homeassistant
# network_mode: host
networks:
- pangolin-home
- teslamate-internal
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- /mnt/docker/home/homeassistant/data:/config
- /run/dbus:/run/dbus:ro
cap_add:
- NET_ADMIN
- NET_RAW
# ports:
# - 8123:8123 #optional
# devices:
# - /path/to/device:/path/to/device #optional
restart: unless-stopped
networks:
pangolin-home:
external: true
teslamate-internal:
external: true