🔧 added files for home assistant

This commit is contained in:
Markus Benjamin Tabler 2026-07-19 19:22:02 +02:00
parent 22c8ad5910
commit 31facfa60d

View file

@ -0,0 +1,42 @@
name: homeassistant
networks:
homeassistant:
external: false
traefik:
external: true
services:
server:
image: ghcr.io/home-assistant/home-assistant:stable
container_name: ${CONTAINER_NAME}
restart: ${RESTART_POLICY}
environment:
- TZ=${TZ}
networks:
- homeassistant
- traefik
volumes:
- type: bind
source: ${DATA_PATH}
target: /config
bind:
create_host_path: true
- type: bind
source: /etc/localtime
target: /etc/localtime
read_only: true
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
labels:
- "traefik.enable=true"
- "traefik.http.routers.${ROUTER_NAME}.entrypoints=websecure"
- "traefik.http.routers.${ROUTER_NAME}.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
- "traefik.http.routers.${ROUTER_NAME}.tls=true"
- "traefik.http.routers.${ROUTER_NAME}.tls.certresolver=${CERTIFICATE_RESOLVER}"
- "traefik.http.services.${ROUTER_NAME}.loadbalancer.server.port=${CONTAINER_PORT}"
- "traefik.docker.network=${TRAEFIK_NETWORK}"