Update docker-compose.yml
added traefik labels and network
This commit is contained in:
@@ -12,8 +12,18 @@ name: immich
|
|||||||
services:
|
services:
|
||||||
immich-server:
|
immich-server:
|
||||||
container_name: immich_server
|
container_name: immich_server
|
||||||
|
networks:
|
||||||
|
- traefik-public
|
||||||
labels:
|
labels:
|
||||||
- "com.centurylinklabs.watchtower.monitor-only=true"
|
- "com.centurylinklabs.watchtower.monitor-only=true"
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.immich.rule=Host(`immich.yourdomain.com`)"
|
||||||
|
- "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"
|
||||||
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
|
||||||
# extends:
|
# extends:
|
||||||
# file: hwaccel.transcoding.yml
|
# file: hwaccel.transcoding.yml
|
||||||
@@ -32,6 +42,8 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: false
|
disable: false
|
||||||
|
traefik-public:
|
||||||
|
external: true
|
||||||
|
|
||||||
immich-machine-learning:
|
immich-machine-learning:
|
||||||
container_name: immich_machine_learning
|
container_name: immich_machine_learning
|
||||||
|
|||||||
Reference in New Issue
Block a user