add home assistant

This commit is contained in:
debian
2024-02-29 23:51:51 +01:00
parent 1565bce97a
commit fef986fb80
4 changed files with 24 additions and 4 deletions

View File

@@ -37,6 +37,7 @@ include:
- path: - path:
- ${SERVICE_PATH}/gitea/gitea.yml - ${SERVICE_PATH}/gitea/gitea.yml
- ${SERVICE_PATH}/home-assistant/home-assistant.yml
- ${SERVICE_PATH}/it-tools/it-tools.yml - ${SERVICE_PATH}/it-tools/it-tools.yml
- ${SERVICE_PATH}/mealie/mealie.yml - ${SERVICE_PATH}/mealie/mealie.yml
- ${SERVICE_PATH}/paperless-ngx/paperless-ngx.yml - ${SERVICE_PATH}/paperless-ngx/paperless-ngx.yml

View File

@@ -13,7 +13,7 @@ services:
DB_DATABASE_NAME: immich DB_DATABASE_NAME: immich
REDIS_HOSTNAME: redis REDIS_HOSTNAME: redis
volumes: volumes:
- ${IMMICH_EXTERNAL_PATH}:/usr/src/app/external - ${IMMICH_EXTERNAL_PATH}:/usr/src/app/external:ro
- ${MEDIA_PATH}/immich/data/library:/usr/src/app/upload - ${MEDIA_PATH}/immich/data/library:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:

View File

@@ -0,0 +1,21 @@
services:
home-assistant:
extends:
file: ${TEMPLATES_PATH}
service: default
image: ghcr.io/home-assistant/home-assistant:stable
container_name: home-assistant
ports:
- 4012:8123
volumes:
- ${SERVICE_PATH}/home-assistant/config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
labels:
# Watchtower
- "com.centurylinklabs.watchtower.enable=true"
# Traefik
- "traefik.enable=true"
- "traefik.http.routers.home-assistant.rule=Host(`ha.${LOCAL_DOMAIN}`)"
- "traefik.http.routers.home-assistant.entrypoints=https"
- "traefik.http.routers.home-assistant.tls=true"

View File

@@ -14,6 +14,4 @@ services:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.it-tools.rule=Host(`it-tools.${LOCAL_DOMAIN}`)" - "traefik.http.routers.it-tools.rule=Host(`it-tools.${LOCAL_DOMAIN}`)"
- "traefik.http.routers.it-tools.entrypoints=https" - "traefik.http.routers.it-tools.entrypoints=https"
- "traefik.http.routers.it-tools.tls=true" - "traefik.http.routers.it-tools.tls=true"
# Middlewares
- "traefik.http.routers.it-tools.middlewares=crowdsec-bouncer@file"