Fix Immich HTTPS routing - add Traefik labels and dokploy-network
This commit is contained in:
@@ -7,23 +7,32 @@ services:
|
|||||||
POSTGRES_USER: immich
|
POSTGRES_USER: immich
|
||||||
volumes:
|
volumes:
|
||||||
- immich-postgres:/var/lib/postgresql/data
|
- immich-postgres:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
immich-machine-learning:
|
immich-machine-learning:
|
||||||
image: ghcr.io/immich-app/immich-machine-learning:v1.106.4
|
image: ghcr.io/immich-app/immich-machine-learning:v1.106.4
|
||||||
volumes:
|
volumes:
|
||||||
- immich-model-cache:/cache
|
- immich-model-cache:/cache
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
immich-redis:
|
immich-redis:
|
||||||
image: redis:6.2-alpine
|
image: redis:6.2-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- immich-redis-data:/data
|
- immich-redis-data:/data
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
immich-server:
|
immich-server:
|
||||||
image: ghcr.io/immich-app/immich-server:v2.3.0
|
image: ghcr.io/immich-app/immich-server:v2.3.0
|
||||||
environment:
|
environment:
|
||||||
@@ -41,16 +50,32 @@ services:
|
|||||||
- /mnt/synology-data/immich:/usr/src/app/upload
|
- /mnt/synology-data/immich:/usr/src/app/upload
|
||||||
- /mnt/photos:/var/photos
|
- /mnt/photos:/var/photos
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.labels.type == nas
|
- 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:
|
volumes:
|
||||||
immich-redis-data:
|
immich-redis-data:
|
||||||
immich-postgres:
|
immich-postgres:
|
||||||
immich-model-cache:
|
immich-model-cache:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
dokploy-network:
|
||||||
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user