From 45baf159d9e31d5753a4d44ad172d8584a3e5211 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Sat, 16 Jan 2021 14:59:41 +0100 Subject: [PATCH] gitlab: Add memory limits to role This patch adds the missing memory limits to the role making it easier to keep GitLab in check in a machine. --- roles/gitlab/templates/docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/gitlab/templates/docker-compose.yml b/roles/gitlab/templates/docker-compose.yml index 830fbfd..b934b42 100644 --- a/roles/gitlab/templates/docker-compose.yml +++ b/roles/gitlab/templates/docker-compose.yml @@ -22,6 +22,8 @@ services: web: image: docker.io/gitlab/gitlab-ce:{{ gitlab_version }} hostname: '{{ gitlab_domain }}' + mem_limit: 3500mb + memswap_limit: 3756mb environment: GITLAB_OMNIBUS_CONFIG: | external_url 'https://{{ gitlab_domain }}'