perf: strictly limit memory usage for notegraph and orgmylife
This commit is contained in:
@@ -2,6 +2,10 @@ services:
|
|||||||
silverbullet:
|
silverbullet:
|
||||||
image: zefhemel/silverbullet:latest
|
image: zefhemel/silverbullet:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 256M
|
||||||
environment:
|
environment:
|
||||||
SB_USER: "${SB_USER:-admin:changeme}"
|
SB_USER: "${SB_USER:-admin:changeme}"
|
||||||
volumes:
|
volumes:
|
||||||
@@ -18,6 +22,10 @@ services:
|
|||||||
git-sync:
|
git-sync:
|
||||||
image: alpine/git:latest
|
image: alpine/git:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 64M
|
||||||
volumes:
|
volumes:
|
||||||
- ./notes:/space
|
- ./notes:/space
|
||||||
- ./.git:/repo-git:ro
|
- ./.git:/repo-git:ro
|
||||||
@@ -43,6 +51,10 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./ingestion
|
context: ./ingestion
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 256M
|
||||||
ports:
|
ports:
|
||||||
- "8001:8001"
|
- "8001:8001"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ services:
|
|||||||
db:
|
db:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
command: postgres -c shared_buffers=32MB -c max_connections=20
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 256M
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: orgmylife
|
POSTGRES_DB: orgmylife
|
||||||
POSTGRES_USER: orgmylife
|
POSTGRES_USER: orgmylife
|
||||||
@@ -21,6 +26,10 @@ services:
|
|||||||
app:
|
app:
|
||||||
build: .
|
build: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 256M
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
Reference in New Issue
Block a user