Restore standard Compose updates for Immich

This commit is contained in:
smileBeda committed 2026-11-16 15:02:31 +00:00
1 parent 84e49e8486
commit 594781f562
2 files changed
+12 -12

No files matched your search

+8 -7
View File
@@ -6,19 +6,20 @@ Immich stores, organizes, and searches the homelab's photos and videos.
- **Compose:** `/srv/docker/immich/docker-compose.yml` - **Compose:** `/srv/docker/immich/docker-compose.yml`
- **Static configuration/source:** `/srv/docker/immich/hwaccel.ml.yml` and `/srv/docker/immich/hwaccel.transcoding.yml` - **Static configuration/source:** `/srv/docker/immich/hwaccel.ml.yml` and `/srv/docker/immich/hwaccel.transcoding.yml`
- **Non-secret environment:** ML logging and model revision are inline in Compose; version and other environment settings are supplied through the protected central environment - **Non-secret configuration:** image tags, ML logging, and model revision are declared directly in Compose
- **Secrets:** `/srv/docker/secrets/immich/.env` - **Secrets:** `/srv/docker/secrets/immich/.env`
- **NVMe application state:** `/srv/appdata/immich/postgres`, `/srv/appdata/immich/redis`, and `/srv/appdata/immich/model-cache` - **NVMe application state:** `/srv/appdata/immich/postgres`, `/srv/appdata/immich/redis`, and `/srv/appdata/immich/model-cache`
- **Bulk HDD data:** `/data/Data1/immich/library`, mounted at `/data` - **Bulk HDD data:** `/data/Data1/immich/library`, mounted at `/data`
- **Other mounts:** `/etc/localtime` read-only; `/dev/dri` device passthrough for VAAPI transcoding and OpenVINO inference - **Other mounts:** `/etc/localtime` read-only; `/dev/dri` device passthrough for VAAPI transcoding and OpenVINO inference
Secrets are never committed to this repository. The central environment is Secrets are never committed to this repository. The server, ML, and
supplied to the server and ML services and is also loaded explicitly by PostgreSQL services load the central environment through env_file.
Compose for version and database-variable interpolation. Required variables Image tags are declared directly in docker-compose.yml.
include IMMICH_VERSION, DB_PASSWORD, DB_USERNAME, and DB_DATABASE_NAME.
Run Compose from `/srv/docker/immich` using: Run updates from /srv/docker/immich:
`sudo docker compose --env-file /srv/docker/secrets/immich/.env -f docker-compose.yml`
sudo docker compose pull
sudo docker compose up -d
## Dependencies and recovery ## Dependencies and recovery
+4 -5
View File
@@ -14,7 +14,7 @@ services:
mem_limit: 1.5g mem_limit: 1.5g
memswap_limit: 2g memswap_limit: 2g
container_name: immich_server container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:?Set IMMICH_VERSION} image: ghcr.io/immich-app/immich-server:v3
extends: extends:
file: hwaccel.transcoding.yml file: hwaccel.transcoding.yml
service: vaapi # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding service: vaapi # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
@@ -38,7 +38,7 @@ services:
container_name: immich_machine_learning container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda # Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:?Set IMMICH_VERSION}-openvino image: ghcr.io/immich-app/immich-machine-learning:v3-openvino
extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
file: hwaccel.ml.yml 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 service: openvino # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
@@ -70,10 +70,9 @@ services:
memswap_limit: 2.5g memswap_limit: 2.5g
container_name: immich_postgres container_name: immich_postgres
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:41eacbe83eca995561fe43814fd4891e16e39632806253848efaf04d3c8a8b84 image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:41eacbe83eca995561fe43814fd4891e16e39632806253848efaf04d3c8a8b84
env_file:
- /srv/docker/secrets/immich/.env
environment: environment:
POSTGRES_PASSWORD: ${DB_PASSWORD:?Set DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME:?Set DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME:?Set DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums' POSTGRES_INITDB_ARGS: '--data-checksums'
volumes: volumes:
- /srv/appdata/immich/postgres:/var/lib/postgresql/data - /srv/appdata/immich/postgres:/var/lib/postgresql/data