From 09b13c3f51af5bc5e35d9e5c04b2731c7aaf3649 Mon Sep 17 00:00:00 2001 From: Changkun Ou Date: Tue, 27 Dec 2022 16:02:21 +0100 Subject: [PATCH] docker: add mem limit to mongo container --- docker/docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 4235363..c58b030 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -19,6 +19,8 @@ services: restart: always container_name: redirdb image: mongo:latest + mem_limit: 512m + memswap_limit: 1g ports: - "27018:27017" volumes: