Fix Immich HTTPS routing - add Traefik labels and dokploy-network
This commit is contained in:
@@ -7,23 +7,32 @@ services:
|
||||
POSTGRES_USER: immich
|
||||
volumes:
|
||||
- immich-postgres:/var/lib/postgresql/data
|
||||
networks:
|
||||
- dokploy-network
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
|
||||
immich-machine-learning:
|
||||
image: ghcr.io/immich-app/immich-machine-learning:v1.106.4
|
||||
volumes:
|
||||
- immich-model-cache:/cache
|
||||
networks:
|
||||
- dokploy-network
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
|
||||
immich-redis:
|
||||
image: redis:6.2-alpine
|
||||
volumes:
|
||||
- immich-redis-data:/data
|
||||
networks:
|
||||
- dokploy-network
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
|
||||
immich-server:
|
||||
image: ghcr.io/immich-app/immich-server:v2.3.0
|
||||
environment:
|
||||
@@ -41,16 +50,32 @@ services:
|
||||
- /mnt/synology-data/immich:/usr/src/app/upload
|
||||
- /mnt/photos:/var/photos
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
networks:
|
||||
- dokploy-network
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.type == nas
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.immich-web.rule=Host(`immich.bendtstudio.com`)
|
||||
- traefik.http.routers.immich-web.entrypoints=web
|
||||
- traefik.http.services.immich-web.loadbalancer.server.port=2283
|
||||
- traefik.http.routers.immich-web.service=immich-web
|
||||
- traefik.http.routers.immich-web.middlewares=redirect-to-https@file
|
||||
- traefik.http.routers.immich-websecure.rule=Host(`immich.bendtstudio.com`)
|
||||
- traefik.http.routers.immich-websecure.entrypoints=websecure
|
||||
- traefik.http.services.immich-websecure.loadbalancer.server.port=2283
|
||||
- traefik.http.routers.immich-websecure.service=immich-websecure
|
||||
- traefik.http.routers.immich-websecure.tls.certresolver=letsencrypt
|
||||
|
||||
volumes:
|
||||
immich-redis-data:
|
||||
immich-postgres:
|
||||
immich-model-cache:
|
||||
|
||||
|
||||
networks:
|
||||
dokploy-network:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user