From 3fdf73e51449605180e7e062416c85ed2b4411e6 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 1 Jan 2021 20:20:35 -0800 Subject: [PATCH] add mem_limit for mount --- docker/local-dev-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/local-dev-compose.yml b/docker/local-dev-compose.yml index 91aee63f6..752086acd 100644 --- a/docker/local-dev-compose.yml +++ b/docker/local-dev-compose.yml @@ -38,7 +38,8 @@ services: privileged: true cap_add: - SYS_ADMIN - command: 'mount -filer="filer:8888" -dirAutoCreate -dir=/mnt/seaweedfs' + mem_limit: 4096m + command: '-v=4 mount -filer="filer:8888" -dirAutoCreate -dir=/mnt/seaweedfs -cacheCapacityMB=0 ' depends_on: - master - volume