Files
homeassistant/docker-compose.yaml
T
mattspeer da052cda8a Update docker-compose.yaml
updated the labels for with correct information for home assistant
2026-05-28 17:46:12 -05:00

33 lines
977 B
YAML

---
version: "2.1"
services:
homeassistant:
image: lscr.io/linuxserver/homeassistant:latest
container_name: homeassistant
networks:
- traefik-public
labels:
- "traefik.enable=true"
- "traefik.http.routers.hass.rule=Host(`ha.speerfam.net`)"
- "traefik.http.routers.hass.entrypoints=websecure"
- "traefik.http.routers.hass.tls.certresolver=myresolver"
# Pulling the security rules dynamically from our file provider setup
- "traefik.http.routers.hass.middlewares=geoblock-policy@file,crowdsec-policy@file,secure-headers@file"
- "traefik.http.services.hass.loadbalancer.server.port=8123"
network_mode: host
environment:
- PUID=1000
- PGID=1000
- TZ=America/Chicago
volumes:
- /srv/docker/homeassistant:/config
ports:
- 8123:8123
# devices:
# - /path/to/device:/path/to/device #optional
restart: always
networks:
traefik-public:
external: true