perf: strictly limit memory usage for notegraph and orgmylife

This commit is contained in:
2026-07-26 10:35:53 +02:00
parent 789a200595
commit 21c05864af
2 changed files with 21 additions and 0 deletions
@@ -4,6 +4,11 @@ services:
db:
image: postgres:16-alpine
restart: unless-stopped
command: postgres -c shared_buffers=32MB -c max_connections=20
deploy:
resources:
limits:
memory: 256M
environment:
POSTGRES_DB: orgmylife
POSTGRES_USER: orgmylife
@@ -21,6 +26,10 @@ services:
app:
build: .
restart: unless-stopped
deploy:
resources:
limits:
memory: 256M
depends_on:
db:
condition: service_healthy