Update docker-compose.yaml

Added labels and network for traefik
This commit is contained in:
2026-05-28 17:44:42 -05:00
parent 3f4604ec23
commit 9bc6e64b81
+16
View File
@@ -4,6 +4,18 @@ services:
homeassistant: homeassistant:
image: lscr.io/linuxserver/homeassistant:latest image: lscr.io/linuxserver/homeassistant:latest
container_name: homeassistant container_name: homeassistant
networks:
- traefik-public
labels:
- "com.centurylinklabs.watchtower.monitor-only=true"
- "traefik.enable=true"
- "traefik.http.routers.immich.rule=Host(`photos.speerfam.net`)"
- "traefik.http.routers.immich.entrypoints=websecure"
- "traefik.http.routers.immich.tls.certresolver=myresolver"
# Pulling the security rules dynamically from our file provider setup
- "traefik.http.routers.immich.middlewares=geoblock-policy@file,crowdsec-policy@file,secure-headers@file"
- "traefik.http.services.immich.loadbalancer.server.port=2283"
network_mode: host network_mode: host
environment: environment:
- PUID=1000 - PUID=1000
@@ -16,3 +28,7 @@ services:
# devices: # devices:
# - /path/to/device:/path/to/device #optional # - /path/to/device:/path/to/device #optional
restart: always restart: always
networks:
traefik-public:
external: true