mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-22 23:18:05 +03:00
dev: limit memory usage of mongodb (#1390)
* dev: limit mongodb cache size * fix indentation
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
storage:
|
||||
wiredTiger:
|
||||
engineConfig:
|
||||
cacheSizeGB: 2
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user