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