From b6377898166bc6aa771d7dce99821e5fb8034fd0 Mon Sep 17 00:00:00 2001 From: PorridgePi Date: Sat, 24 Sep 2022 12:37:52 +0100 Subject: [PATCH] homeassistant: Initial commit --- homeassistant/.env.example | 1 + homeassistant/docker-compose.yml | 25 +++++++++++++++++++++++++ 2 files changed, 26 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..0e339d9 --- /dev/null +++ b/homeassistant/.env.example @@ -0,0 +1 @@ +HOMEASSISTANT_DOMAIN=domain_goes_here diff --git a/homeassistant/docker-compose.yml b/homeassistant/docker-compose.yml new file mode 100644 index 0000000..a375b60 --- /dev/null +++ b/homeassistant/docker-compose.yml @@ -0,0 +1,25 @@ +version: "3.9" + +networks: + public: + external: true + +services: + homeassistant: + image: "ghcr.io/home-assistant/home-assistant:stable" + container_name: homeassistant + restart: always + volumes: + - "./homeassistant-config-data:/config" + - "/etc/localtime:/etc/localtime:ro" + # ports: + # - "8123:8123" + networks: + - public + labels: + - "traefik.enable=true" + - "traefik.http.routers.homeassistant.rule=Host(`${HOMEASSISTANT_DOMAIN}`)" + - "traefik.http.routers.homeassistant.service=homeassistant-service" + - "traefik.http.services.homeassistant-service.loadbalancer.server.port=8123" + - "traefik.http.routers.homeassistant.tls=true" + - "traefik.http.routers.homeassistant.tls.certresolver=le"