21 lines
679 B
YAML
21 lines
679 B
YAML
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" |