From 8ea71bd93eed1fd4776725c5fe446feb963c2100 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Mon, 26 Feb 2024 10:51:50 -0800 Subject: [PATCH] Init home assistant --- fighter/config/home-assistant/.env | 1 + .../config/home-assistant/docker-compose.yml | 18 ++++++++++++++++++ .../config/home-assistant/home-assistant.env | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 fighter/config/home-assistant/.env create mode 100644 fighter/config/home-assistant/docker-compose.yml create mode 100644 fighter/config/home-assistant/home-assistant.env diff --git a/fighter/config/home-assistant/.env b/fighter/config/home-assistant/.env new file mode 100644 index 0000000..2cebbe0 --- /dev/null +++ b/fighter/config/home-assistant/.env @@ -0,0 +1 @@ +DOCKER_DATA=/mnt/iscsi/home-assistant \ No newline at end of file diff --git a/fighter/config/home-assistant/docker-compose.yml b/fighter/config/home-assistant/docker-compose.yml new file mode 100644 index 0000000..ade95fe --- /dev/null +++ b/fighter/config/home-assistant/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3.9' +services: + home-assistant: + image: lscr.io/linuxserver/homeassistant:latest + container_name: home-assistant_home-assistant + env_file: + - home-assistant.env + networks: + - web + volumes: + - $DOCKER_DATA:/config + labels: + - traefik.http.routers.home-assistant.rule=Host(`homeassistant.jafner.net`) + - traefik.http.routers.home-assistant.tls.certresolver=lets-encrypt + +networks: + web: + external: true \ No newline at end of file diff --git a/fighter/config/home-assistant/home-assistant.env b/fighter/config/home-assistant/home-assistant.env new file mode 100644 index 0000000..8f9f9f4 --- /dev/null +++ b/fighter/config/home-assistant/home-assistant.env @@ -0,0 +1,3 @@ +TZ=America/Los_Angeles +PUID=1001 +PGID=1001 \ No newline at end of file