mirror of
https://github.com/JG2401/HetznerDokployLab.git
synced 2026-08-29 04:30:10 +00:00
Add resource limits to Immich
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user