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