From 6655a4135c866072811f8c9e47e493715dafc00a Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Tue, 21 Jun 2022 19:46:58 +0800 Subject: [PATCH] compose limit memory --- docker-compose.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 4e92d890a..4ec6b65b3 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -20,6 +20,7 @@ services: ports: - 37017:27017 container_name: mongo + command: --wiredTigerCacheSizeGB 5 volumes: - ./components/mongodb/data/db:/data/db - ./components/mongodb/data/logs:/data/logs