immich toegevoegd

This commit is contained in:
Arnout van Westen committed 2025-11-25 10:09:54 +01:00
1 parent 14b1097372
commit 10c4b592fd
4 files changed
+270

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
# You can find documentation for all the supported env variables at https://docs.immich.app/install/environment-variables
# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/user/immich
IMMICH_MEDIA_LOCATION=/photos
# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=/mnt/user/appdata/PostgreSQL_Immich
# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=Europe/Berlin
IMMICH_MACHINE_LEARNING_URL=http://192.168.10.144:3003
# The Immich version to use. You can pin this to a specific version like "v2.1.0"
IMMICH_VERSION=v2
# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=immich
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=immich
DB_DATABASE_NAME=immich
DB_HOSTNAME=192.168.10.144
DB_PORT=5434
#redis
REDIS_PORT=6390
REDIS_PASSWORD=
REDIS_HOST=192.168.10.144
#Machine learing
MACHINE_LEARNING_HOST=0.0.0.0
MACHINE_LEARNING_GPU_ACCELERATION=openvino
MACHINE_LEARNING_MAX_BATCH_SIZE__FACIAL_RECOGNITION=1
MACHINE_LEARNING_CACHE_FOLDER=/config/machine-learning/models
+119
View File
@@ -0,0 +1,119 @@
#
# WARNING: To install Immich, follow our guide: https://docs.immich.app/install/docker-compose
#
# Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
name: immich
services:
immich-server:
network_mode: bridge
labels:
- traefik.http.routers.immich.rule=Host(`photos.arnoutvw.nl`)
- pangolin.proxy-resources.immich.name=immich
- pangolin.proxy-resources.immich.full-domain=photos.arnoutvw.nl
- pangolin.proxy-resources.immich.protocol=http
- pangolin.proxy-resources.immich.ssl=true
- pangolin.proxy-resources.immich.targets[0].method=http
- pangolin.proxy-resources.immich.targets[0].hostname=192.168.10.144
- pangolin.proxy-resources.immich.targets[0].healthcheck.hostname=192.168.10.144
- pangolin.proxy-resources.immich.targets[0].healthcheck.port=8693
- pangolin.proxy-resources.immich.targets[0].healthcheck.enabled=true
- pangolin.proxy-resources.immich.auth.sso-enabled=false
- pangolin.proxy-resources.immich.rules[0].match=country
- pangolin.proxy-resources.immich.rules[0].action=allow
- pangolin.proxy-resources.immich.rules[0].value=NL
- pangolin.proxy-resources.immich.rules[1].match=country
- pangolin.proxy-resources.immich.rules[1].action=allow
- pangolin.proxy-resources.immich.rules[1].value=DE
- pangolin.proxy-resources.immich.rules[2].match=ip
- pangolin.proxy-resources.immich.rules[2].action=allow
- pangolin.proxy-resources.immich.rules[2].value=172.21.0.1
- pangolin.proxy-resources.immich.rules[3].match=country
- pangolin.proxy-resources.immich.rules[3].action=deny
- pangolin.proxy-resources.immich.rules[3].value=ALL
- net.unraid.docker.icon="https://raw.githubusercontent.com/imagegenius/templates/main/unraid/img/immich.png"
- net.unraid.docker.managed="dockerman"
container_name: immich_server
image: ghcr.io/immich-app/immich-server:v2.3.1
extends:
file: hwaccel.transcoding.yml
service: vaapi
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/photos
- /etc/localtime:/etc/localtime:ro
- "/mnt/user/photos:/icloud"
- /mnt/cache/appdata/immich:/config
- "21d10919ae9b171bf84d0e683c0c8b0ebee59196730a2d9fe49a4200cb47c474:/libraries"
env_file:
- .env
ports:
- '8693:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
immich-machine-learning:
network_mode: bridge
ports:
- '3003:3003'
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:v2.3.1-openvino
extends: # uncomment this section for hardware acceleration - see https://docs.immich.app/features/ml-hardware-acceleration
file: hwaccel.ml.yml
service: openvino # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
- /mnt/cache/appdata/immich:/config
env_file:
- .env
restart: always
healthcheck:
disable: false
redis:
container_name: immich_redis
image: docker.io/valkey/valkey:8@sha256:81db6d39e1bba3b3ff32bd3a1b19a6d69690f94a3954ec131277b9a26b95b3aa
network_mode: "bridge"
ports:
- '6380:6379'
healthcheck:
test: redis-cli ping || exit 1
restart: always
database:
container_name: immich_postgres
image: ghcr.io/immich-app/postgres:16-vectorchord0.4.2-pgvectors0.3.0
network_mode: "bridge"
ports:
- '5434:5432'
labels:
net.unraid.docker.icon: "https://github.com/SpaceinvaderOne/Docker-Templates-Unraid/blob/master/spaceinvaderone/docker_icons/postgresql-immich-logo.png?raw=true"
net.unraid.docker.managed: "dockerman"
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
# DB_STORAGE_TYPE: 'HDD'
volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
shm_size: 128mb
restart: always
volumes:
model-cache:
21d10919ae9b171bf84d0e683c0c8b0ebee59196730a2d9fe49a4200cb47c474:
external: true
+57
View File
@@ -0,0 +1,57 @@
# Configurations for hardware-accelerated machine learning
# If using Unraid or another platform that doesn't allow multiple Compose files,
# you can inline the config for a backend by copying its contents
# into the immich-machine-learning service in the docker-compose.yml file.
# See https://docs.immich.app/features/ml-hardware-acceleration for info on usage.
services:
armnn:
devices:
- /dev/mali0:/dev/mali0
volumes:
- /lib/firmware/mali_csffw.bin:/lib/firmware/mali_csffw.bin:ro # Mali firmware for your chipset (not always required depending on the driver)
- /usr/lib/libmali.so:/usr/lib/libmali.so:ro # Mali driver for your chipset (always required)
rknn:
security_opt:
- systempaths=unconfined
- apparmor=unconfined
devices:
- /dev/dri:/dev/dri
cpu: { }
cuda:
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities:
- gpu
rocm:
group_add:
- video
devices:
- /dev/dri:/dev/dri
- /dev/kfd:/dev/kfd
openvino:
device_cgroup_rules:
- 'c 189:* rmw'
devices:
- /dev/dri:/dev/dri
volumes:
- /dev/bus/usb:/dev/bus/usb
openvino-wsl:
devices:
- /dev/dri:/dev/dri
- /dev/dxg:/dev/dxg
volumes:
- /dev/bus/usb:/dev/bus/usb
- /usr/lib/wsl:/usr/lib/wsl
+55
View File
@@ -0,0 +1,55 @@
# Configurations for hardware-accelerated transcoding
# If using Unraid or another platform that doesn't allow multiple Compose files,
# you can inline the config for a backend by copying its contents
# into the immich-microservices service in the docker-compose.yml file.
# See https://docs.immich.app/features/hardware-transcoding for more info on using hardware transcoding.
services:
cpu: { }
nvenc:
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities:
- gpu
- compute
- video
quicksync:
devices:
- /dev/dri:/dev/dri
rkmpp:
security_opt: # enables full access to /sys and /proc, still far better than privileged: true
- systempaths=unconfined
- apparmor=unconfined
group_add:
- video
devices:
- /dev/rga:/dev/rga
- /dev/dri:/dev/dri
- /dev/dma_heap:/dev/dma_heap
- /dev/mpp_service:/dev/mpp_service
#- /dev/mali0:/dev/mali0 # only required to enable OpenCL-accelerated HDR -> SDR tonemapping
volumes:
#- /etc/OpenCL:/etc/OpenCL:ro # only required to enable OpenCL-accelerated HDR -> SDR tonemapping
#- /usr/lib/aarch64-linux-gnu/libmali.so.1:/usr/lib/aarch64-linux-gnu/libmali.so.1:ro # only required to enable OpenCL-accelerated HDR -> SDR tonemapping
vaapi:
devices:
- /dev/dri:/dev/dri
vaapi-wsl: # use this for VAAPI if you're running Immich in WSL2
devices:
- /dev/dri:/dev/dri
- /dev/dxg:/dev/dxg
volumes:
- /usr/lib/wsl:/usr/lib/wsl
environment:
- LIBVA_DRIVER_NAME=d3d12