Adds immich

This commit is contained in:
2025-11-10 21:53:13 +01:00
parent 5fc4fbcef3
commit 7b21388adc
16 changed files with 151 additions and 14 deletions

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/immich/storage/data
Driver=local
Options=bind
Type=none
VolumeName=immich-data

View File

@@ -0,0 +1,28 @@
[Unit]
Description=Immich database container
[Container]
AutoUpdate=registry
ContainerName=immich-database
Environment=DB_STORAGE_TYPE=HDD
Environment=POSTGRES_USER=postgres
Environment=POSTGRES_DB=immich
Environment=POSTGRES_INTIDB_ARGS=--data-checksums
Environment=TZ=Europe/Zurich
HealthCmd=pg_isready -U postgres
HealthInterval=30s
HealthTimeout=10s
HealthRetries=5
Image=ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
Pod=immich.pod
Secret=database-password,type=env,target=POSTGRES_PASSWORD
ShmSize=128m
StartWithPod=true
Timezone=Europe/Zurich
Volume=immich-database.volume:/var/lib/postgresql/data
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/immich/storage/database
Driver=local
Options=bind
Type=none
VolumeName=immich-database

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/immich/storage/ml-cache
Driver=local
Options=bind
Type=none
VolumeName=immich-ml-cache

View File

@@ -0,0 +1,24 @@
[Unit]
Description=Immich machine learning container
[Container]
AutoUpdate=registry
ContainerName=immich-ml
Environment=DB_DATA_LOCATION=./postgres
Environment=DB_USERNAME=postgres
Environment=DB_DATABASE_NAME=immich
Environment=IMMICH_VERSION=v2
Environment=TZ=Europe/Zurich
Environment=UPLOAD_LOCATION=./library
Image=ghcr.io/immich-app/immich-machine-learning:release
Pod=immich.pod
Secret=database-password,type=env,target=DB_PASSWORD
StartWithPod=true
Timezone=Europe/Zurich
Volume=immich-ml-cache.volume:/cache
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,21 @@
[Unit]
Description=Immich redis container
[Container]
AutoUpdate=registry
ContainerName=immich-redis
Environment=TZ=Europe/Zurich
HealthCmd=redis-cli ping || exit 1
HealthInterval=30s
HealthTimeout=10s
HealthRetries=5
Image=docker.io/valkey/valkey:8@sha256:81db6d39e1bba3b3ff32bd3a1b19a6d69690f94a3954ec131277b9a26b95b3aa
Pod=immich.pod
StartWithPod=true
Timezone=Europe/Zurich
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,28 @@
[Unit]
Description=Immich container
After=immich-database.container
After=immich-redis.container
Requires=immich-database.container
Requires=immich-redis.container
[Container]
AutoUpdate=registry
ContainerName=immich
Environment=DB_DATA_LOCATION=./postgres
Environment=DB_USERNAME=postgres
Environment=DB_DATABASE_NAME=immich
Environment=IMMICH_VERSION=v2
Environment=TZ=Europe/Zurich
Environment=UPLOAD_LOCATION=./library
Image=ghcr.io/immich-app/immich-server:release
Pod=immich.pod
Secret=database-password,type=env,target=DB_PASSWORD
StartWithPod=true
Timezone=Europe/Zurich
Volume=immich-data.volume:/data
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,3 @@
[Pod]
PodName=immich
PublishPort=9008:2283