mirror of
https://github.com/JG2401/HetznerDokployLab.git
synced 2026-08-28 20:20:15 +00:00
Set CPU and memory limits for services
Added resource limits for paperless, redis, and db services.
This commit is contained in:
@@ -2,6 +2,11 @@ version: '3.8'
|
||||
services:
|
||||
paperless:
|
||||
image: ghcr.io/paperless-ngx/paperless-ngx:2.20.10
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 1.5G
|
||||
container_name: paperless
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
@@ -32,6 +37,11 @@ services:
|
||||
|
||||
redis:
|
||||
image: redis:8.6.1
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.25"
|
||||
memory: 256M
|
||||
container_name: paperless-redis
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
@@ -42,6 +52,11 @@ services:
|
||||
db:
|
||||
container_name: paperless-db
|
||||
image: postgres:16
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.75"
|
||||
memory: 1G
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- paperlessdb:/var/lib/postgresql/data
|
||||
|
||||
Reference in New Issue
Block a user