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

@@ -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.http.routers.it-tools.rule=Host(`it-tools.${LOCAL_DOMAIN}`)"
- "traefik.http.routers.it-tools.entrypoints=https"
- "traefik.http.routers.it-tools.tls=true"
# Middlewares
- "traefik.http.routers.it-tools.middlewares=crowdsec-bouncer@file"
- "traefik.http.routers.it-tools.tls=true"