perf: strictly limit memory usage for umami and backend

This commit is contained in:
2026-07-26 08:33:50 +02:00
parent c2a9bb51fa
commit c1803504c6
+16
View File
@@ -5,6 +5,12 @@ services:
- ./server/data:/app/server/data
env_file:
- .env
environment:
- NODE_OPTIONS=--max-old-space-size=128
deploy:
resources:
limits:
memory: 256M
restart: unless-stopped
caddy:
@@ -23,10 +29,15 @@ services:
umami-db:
image: postgres:15-alpine
command: postgres -c shared_buffers=32MB -c max_connections=20
env_file:
- .env
volumes:
- umami_db_data:/var/lib/postgresql/data
deploy:
resources:
limits:
memory: 256M
restart: unless-stopped
umami:
@@ -35,6 +46,11 @@ services:
- .env
environment:
- PORT=3000
- NODE_OPTIONS=--max-old-space-size=128
deploy:
resources:
limits:
memory: 256M
depends_on:
- umami-db
restart: unless-stopped