Files
2024-07-19 12:38:32 +02:00

23 lines
710 B
YAML

services:
home-assistant:
extends:
file: ${TEMPLATES_PATH}
service: default
image: ghcr.io/home-assistant/home-assistant:stable
container_name: home-assistant
networks:
- ip4net
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"