Update docker-compose.yaml
Added labels and network for traefik
This commit is contained in:
@@ -4,6 +4,18 @@ services:
|
||||
homeassistant:
|
||||
image: lscr.io/linuxserver/homeassistant:latest
|
||||
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
|
||||
environment:
|
||||
- PUID=1000
|
||||
@@ -16,3 +28,7 @@ services:
|
||||
# devices:
|
||||
# - /path/to/device:/path/to/device #optional
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
traefik-public:
|
||||
external: true
|
||||
Reference in New Issue
Block a user