handle memory issues

This commit is contained in:
tdurieux
2026-05-07 21:01:07 +03:00
parent 369fd8edb2
commit 3eeed23609
6 changed files with 60 additions and 10 deletions
+8 -1
View File
@@ -5,6 +5,10 @@ services:
image: tdurieux/anonymous_github:v2
ports:
- $EXPOSED_PORT:5000
deploy:
resources:
limits:
memory: 3G
env_file:
- ./.env
volumes:
@@ -39,7 +43,10 @@ services:
mode: replicated
replicas: 4
endpoint_mode: dnsrr
entrypoint: ["node", "./build/streamer/index.js"]
resources:
limits:
memory: 768M
entrypoint: ["node", "--max-old-space-size=512", "./build/streamer/index.js"]
env_file:
- ./.env
volumes: