From 4707d52aee82c9d653d3c068cf5e0225553ba800 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 10 Sep 2023 15:21:29 +0300 Subject: [PATCH] home-assistant. Adding stack draft. --- README.md | 1 + home-assistant/.env.dist | 8 ++++++++ home-assistant/config/.gitignore | 2 ++ home-assistant/docker-compose.yml | 19 +++++++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 home-assistant/.env.dist create mode 100644 home-assistant/config/.gitignore create mode 100644 home-assistant/docker-compose.yml diff --git a/README.md b/README.md index ceea657..f439f90 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ Not every stack is tested to fully work. | Folding@Home | ✅ | `johnktims/folding-at-home` | Protein folding distributed computing platform. | [Website](https://foldingathome.org), [My guide](https://skobk.in/2020/06/folding-at-home-quick-start/) | | Gatus | ✅ | `twinproduction/gatus` | Advanced service(s) status page. | [Website](https://gatus.io), [Github](https://github.com/TwiN/gatus) | | Gitea | ✅ | `gitea/gitea` | Lightweight Git hosting platfom. | [Website](https://gitea.io/), [Github](https://github.com/go-gitea/gitea) | +| Home Assistant | ✅ | `ghcr.io/home-assistant/home-assistant` | Home automation suite. | [Website](https://www.home-assistant.io/), [Github](https://github.com/home-assistant) | | Homer | ✅ | `b4bz/homer` | Server homepage generator. | [Github](https://github.com/bastienwirtz/homer), [Demo](https://homer-demo.netlify.app), [Configuration](https://github.com/bastienwirtz/homer/blob/main/docs/configuration.md) | | I2PD | ✅ | `purplei2p/i2pd` | The Invisible Internet router. | [Website](https://i2pd.website), [Github](https://github.com/PurpleI2P/i2pd/), [I2P project](https://geti2p.net/) | | InBucket | ✅ | `inbucket/inbucket` | Testing SMTP/POP3 mail server with web interface. | [Website](https://www.inbucket.org), [Github](https://github.com/inbucket/inbucket) | diff --git a/home-assistant/.env.dist b/home-assistant/.env.dist new file mode 100644 index 0000000..c80fb32 --- /dev/null +++ b/home-assistant/.env.dist @@ -0,0 +1,8 @@ +# see https://www.home-assistant.io/installation/linux#install-home-assistant-container + +#IMAGE_TAG=stable + +HOST_CONFIG_DIR=./config + +LOG_MAX_SIZE=5m +LOG_MAX_FILE=5 diff --git a/home-assistant/config/.gitignore b/home-assistant/config/.gitignore new file mode 100644 index 0000000..a68d087 --- /dev/null +++ b/home-assistant/config/.gitignore @@ -0,0 +1,2 @@ +/* +!/.gitignore diff --git a/home-assistant/docker-compose.yml b/home-assistant/docker-compose.yml new file mode 100644 index 0000000..06c52e5 --- /dev/null +++ b/home-assistant/docker-compose.yml @@ -0,0 +1,19 @@ +# https://www.home-assistant.io/installation/linux#install-home-assistant-container +version: '3.8' + +services: + homeassistant: + container_name: homeassistant + image: 'ghcr.io/home-assistant/home-assistant:${IMAGE_TAG:-stable}' + volumes: + - '${HOST_CONFIG_DIR:-./config}:/config' + - '/etc/localtime:/etc/localtime:ro' + restart: unless-stopped + privileged: true + network_mode: host + env_file: .env + logging: + driver: 'json-file' + options: + max-size: '${LOG_MAX_SIZE:-5m}' + max-file: '${LOG_MAX_FILE:-5}'