added homeassistant

This commit is contained in:
Steve Dudenhoeffer 2023-12-25 21:09:14 +00:00
parent fcb87a020c
commit 67af9cd3b0
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# DOMAIN_ROOT is the root domain that this service will register as with Traefik
DOMAIN_ROOT=domain.tld

View File

@ -0,0 +1,26 @@
version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- homeassistant_config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
network_mode: host
environment:
- DOMAIN_ROOT=${DOMAIN_ROOT}
#labels:
# - "traefik.enable=true"
# - "traefik.http.routers.homeassistant.rule=Host(`homeassistant.${DOMAIN_ROOT}`)"
# - "traefik.http.services.homeassistant.loadbalancer.server.port=8123"
# - "traefik.http.services.homeassistant.loadbalancer.server.url=http://192.168.0.197:8123"
# - 'traefik.http.routers.homeassistant.middlewares=authelia@docker'
volumes:
homeassistant_config:
external: true