Update docker-compose.yaml
Added labels and network for traefik
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user