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