dev: limit memory usage of mongodb (#1390)

* dev: limit mongodb cache size

* fix indentation
This commit is contained in:
beerpsi
2025-11-13 20:37:54 +00:00
committed by GitHub
parent c6c86f7e47
commit 1ff8a7139c
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
storage:
wiredTiger:
engineConfig:
cacheSizeGB: 2
+4
View File
@@ -1,12 +1,15 @@
services:
mongo:
container_name: mongo
command: "--config /etc/mongod.conf"
image: mongo:5
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- tachi-volume:/data/db
- "./dev/mongod.conf:/etc/mongod.conf"
redis:
container_name: redis
command: redis-server --save 60 1 --loglevel warning
@@ -33,6 +36,7 @@ services:
# don't let pnpm's node_modules linkery bleed out of its container
- /tachi/node_modules/
- /tachi/.pnpm-store
volumes:
tachi-volume:
tachi-redis: