From e2acc4c6a7c8a9549eeb64a7fc6bb9129e165d72 Mon Sep 17 00:00:00 2001 From: Elias Fink Date: Wed, 16 Jul 2025 19:22:29 +0200 Subject: [PATCH] Added home assistant --- home-assistant/compose.yml | 17 +++++++++++++++++ traefik/config/home-assistant.yml | 15 +++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 home-assistant/compose.yml create mode 100644 traefik/config/home-assistant.yml diff --git a/home-assistant/compose.yml b/home-assistant/compose.yml new file mode 100644 index 0000000..ef421ba --- /dev/null +++ b/home-assistant/compose.yml @@ -0,0 +1,17 @@ +# /services/home-assistant/compose.yml + +services: + home-assistant: + image: homeassistant/home-assistant:2025.7 + container_name: home-assistant + restart: always + networks: + - traefik + volumes: + - ./data:/config + - /etc/localtime:/etc/localtime:ro + - /run/dbus:/run/dbus:ro + +networks: + traefik: + external: true \ No newline at end of file diff --git a/traefik/config/home-assistant.yml b/traefik/config/home-assistant.yml new file mode 100644 index 0000000..f0927ff --- /dev/null +++ b/traefik/config/home-assistant.yml @@ -0,0 +1,15 @@ +# /services/traefik/config/home-assistant.yml + +http: + routers: + smarthome: + entryPoints: + - https + rule: Host(`smarthome.eliasfink.de`) + service: home-assistant + + services: + home-assistant: + loadBalancer: + servers: + - url: http://home-assistant:8123 \ No newline at end of file