Restore standard Compose updates for Immich
This commit is contained in:
1 parent
84e49e8486
commit
594781f562
2 files changed
+12
-12
No files matched your search
@@ -6,19 +6,20 @@ Immich stores, organizes, and searches the homelab's photos and videos.
|
||||
|
||||
- **Compose:** `/srv/docker/immich/docker-compose.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`
|
||||
- **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`
|
||||
- **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
|
||||
supplied to the server and ML services and is also loaded explicitly by
|
||||
Compose for version and database-variable interpolation. Required variables
|
||||
include IMMICH_VERSION, DB_PASSWORD, DB_USERNAME, and DB_DATABASE_NAME.
|
||||
Secrets are never committed to this repository. The server, ML, and
|
||||
PostgreSQL services load the central environment through env_file.
|
||||
Image tags are declared directly in docker-compose.yml.
|
||||
|
||||
Run Compose from `/srv/docker/immich` using:
|
||||
`sudo docker compose --env-file /srv/docker/secrets/immich/.env -f docker-compose.yml`
|
||||
Run updates from /srv/docker/immich:
|
||||
|
||||
sudo docker compose pull
|
||||
sudo docker compose up -d
|
||||
|
||||
## Dependencies and recovery
|
||||
|
||||
|
||||
+4
-5
@@ -14,7 +14,7 @@ services:
|
||||
mem_limit: 1.5g
|
||||
memswap_limit: 2g
|
||||
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:
|
||||
file: hwaccel.transcoding.yml
|
||||
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
|
||||
# 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:${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
|
||||
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
|
||||
@@ -70,10 +70,9 @@ services:
|
||||
memswap_limit: 2.5g
|
||||
container_name: immich_postgres
|
||||
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:41eacbe83eca995561fe43814fd4891e16e39632806253848efaf04d3c8a8b84
|
||||
env_file:
|
||||
- /srv/docker/secrets/immich/.env
|
||||
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'
|
||||
volumes:
|
||||
- /srv/appdata/immich/postgres:/var/lib/postgresql/data
|
||||
|
||||
Reference in new issue
Block a user