add traefik;

This commit is contained in:
Tizian Haider
2026-05-07 20:12:29 +02:00
parent 01ab645c76
commit 502a79ca93
2 changed files with 278 additions and 3 deletions

View File

@@ -4,10 +4,23 @@ services:
image: ghcr.io/home-assistant/home-assistant:stable
restart: unless-stopped
privileged: true
network_mode: host
environment:
- TZ=Europe/Vienna
volumes:
- /srv/home-assistent/config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
environment:
- TZ=Europe/Vienna
networks:
- traefik_nw_public
labels:
- traefik.enable=true
- traefik.http.routers.homeassistant.entrypoints=web,websecure
- traefik.http.routers.homeassistant.rule=Host(`ha.haider.app`)
- traefik.http.routers.homeassistant.tls=true
- traefik.http.routers.homeassistant.tls.certresolver=production
- traefik.docker.network=traefik_nw_public
- traefik.http.services.homeassistant.loadbalancer.server.port=8123
networks:
traefik_nw_public:
external: true