limit mongo memory

pull/168/head
skiffer-git 3 years ago
parent 72ed38156a
commit 84a01569d6

@ -24,6 +24,10 @@ services:
- ./components/mongodb/data/db:/data/db - ./components/mongodb/data/db:/data/db
- ./components/mongodb/data/logs:/data/logs - ./components/mongodb/data/logs:/data/logs
- ./components/mongodb/data/conf:/etc/mongo - ./components/mongodb/data/conf:/etc/mongo
environment:
- TZ=Asia/Shanghai
# cache
- wiredTigerCacheSizeGB=1
# environment: # environment:
# - MONGO_INITDB_ROOT_USERNAME=openIM # - MONGO_INITDB_ROOT_USERNAME=openIM
# - MONGO_INITDB_ROOT_PASSWORD=openIM # - MONGO_INITDB_ROOT_PASSWORD=openIM

Loading…
Cancel
Save