add home assistant
This commit is contained in:
21
project/service/home-assistant/home-assistant.yml
Normal file
21
project/service/home-assistant/home-assistant.yml
Normal 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"
|
||||
Reference in New Issue
Block a user