From 67af9cd3b06382b49926c267c4fe0aa1314b95d7 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Mon, 25 Dec 2023 21:09:14 +0000 Subject: [PATCH] added homeassistant --- homeassistant/.env.example | 2 ++ homeassistant/docker-compose.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 homeassistant/.env.example create mode 100644 homeassistant/docker-compose.yml diff --git a/homeassistant/.env.example b/homeassistant/.env.example new file mode 100644 index 0000000..c378c6a --- /dev/null +++ b/homeassistant/.env.example @@ -0,0 +1,2 @@ +# DOMAIN_ROOT is the root domain that this service will register as with Traefik +DOMAIN_ROOT=domain.tld \ No newline at end of file diff --git a/homeassistant/docker-compose.yml b/homeassistant/docker-compose.yml new file mode 100644 index 0000000..c5fbdb5 --- /dev/null +++ b/homeassistant/docker-compose.yml @@ -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