From b4469c175e0a80eaeff64f4e66ffe80396a837a7 Mon Sep 17 00:00:00 2001 From: Preston Hunter Date: Tue, 11 Nov 2025 21:13:14 -0500 Subject: [PATCH] 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. --- homeassistant/docker-compose.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 homeassistant/docker-compose.yml diff --git a/homeassistant/docker-compose.yml b/homeassistant/docker-compose.yml new file mode 100644 index 0000000..7fab757 --- /dev/null +++ b/homeassistant/docker-compose.yml @@ -0,0 +1,29 @@ +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 \ No newline at end of file