From 92bc5557e8fdebe78b5d1ecfb36d462dd195981c Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Fri, 4 Nov 2022 23:51:10 -0700 Subject: [PATCH] Constrain memory for qbittorrent and gitlab --- server/config/gitlab/docker-compose.yml | 4 ++++ server/config/qbittorrent/docker-compose.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/config/gitlab/docker-compose.yml b/server/config/gitlab/docker-compose.yml index 6d1d0a3..57f6353 100644 --- a/server/config/gitlab/docker-compose.yml +++ b/server/config/gitlab/docker-compose.yml @@ -11,6 +11,10 @@ services: loki-retries: "1" loki-timeout: "2s" keep-file: "true" + deploy: + resources: + limits: + memory: 4G restart: "no" hostname: 'gitlab.jafner.net' networks: diff --git a/server/config/qbittorrent/docker-compose.yml b/server/config/qbittorrent/docker-compose.yml index e9c0191..6e33336 100644 --- a/server/config/qbittorrent/docker-compose.yml +++ b/server/config/qbittorrent/docker-compose.yml @@ -14,7 +14,7 @@ services: deploy: resources: limits: - memory: 12G + memory: 6G networks: - web restart: "no"