perf: strictly limit memory usage for notegraph and orgmylife
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user