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
@@ -2,6 +2,10 @@ services:
silverbullet:
image: zefhemel/silverbullet:latest
restart: unless-stopped
deploy:
resources:
limits:
memory: 256M
environment:
SB_USER: "${SB_USER:-admin:changeme}"
volumes:
@@ -18,6 +22,10 @@ services:
git-sync:
image: alpine/git:latest
restart: unless-stopped
deploy:
resources:
limits:
memory: 64M
volumes:
- ./notes:/space
- ./.git:/repo-git:ro
@@ -43,6 +51,10 @@ services:
build:
context: ./ingestion
restart: unless-stopped
deploy:
resources:
limits:
memory: 256M
ports:
- "8001:8001"
volumes:
@@ -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