diff --git a/docker-compose.yml b/docker-compose.yml
index 3912db5..e13feab 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -3,6 +3,7 @@
 services:
   master-jenkins:
     image: jenkins:alpine
+    mem_limit: 2g
     volumes:
       - ./home:/var/jenkins_home
     restart: always