Add resource limits to Immich

This commit is contained in:
JG2401
2026-07-17 22:08:01 +02:00
committed by GitHub
parent 0f2952744a
commit 9f5b29e7bd

View File

@@ -3,6 +3,11 @@ version: "3.9"
services:
immich-server:
image: ghcr.io/immich-app/immich-server:v2.7.5
deploy:
resources:
limits:
cpus: "1.25"
memory: 2G
labels:
- rclone.storage=storagebox-crypt
volumes:
@@ -36,7 +41,11 @@ services:
immich-machine-learning:
image: ghcr.io/immich-app/immich-machine-learning:v2.7.5
deploy:
resources:
limits:
cpus: "1.75"
memory: 2.5G
volumes:
- immich-model-cache:/cache
environment:
@@ -52,7 +61,11 @@ services:
immich-redis:
image: redis:6.2-alpine
deploy:
resources:
limits:
cpus: "0.25"
memory: 256M
volumes:
- immich-redis-data:/data
healthcheck:
@@ -64,7 +77,11 @@ services:
immich-database:
image: tensorchord/pgvecto-rs:pg14-v0.3.0
deploy:
resources:
limits:
cpus: "0.75"
memory: 1.5G
volumes:
- immich-postgres:/var/lib/postgresql/data
environment: