feat: update immich-server configuration with Traefik labels for routing

This commit is contained in:
nathan 2026-05-06 21:53:09 -04:00
parent f0e44b472a
commit 000216e899

View File

@ -11,8 +11,15 @@ services:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
env_file: env_file:
- .env - .env
ports: # ports:
- '2283:2283' # - '2283:2283'
labels:
- "traefik.enable=true"
- "traefik.http.routers.immich.rule=Host(`photos.castaldifamily.com`)"
- "traefik.http.routers.immich.entrypoints=websecure"
- "traefik.http.routers.immich.tls=true"
- "traefik.http.routers.immich.tls.certresolver=cloudflare"
- "traefik.http.services.immich.loadbalancer.server.port=2283"
depends_on: depends_on:
- immich-redis - immich-redis
- immich-database - immich-database