From 266f6aa3fea41f0fe594e6c8e83b716f0d744dc8 Mon Sep 17 00:00:00 2001 From: Ben Schumacher Date: Mon, 26 Jan 2026 18:10:04 +0100 Subject: [PATCH] Add memory limits for postgres and mattermost containers Add mem_limit settings with documentation links to help users configure appropriate memory limits based on their deployment size. Co-Authored-By: Claude Opus 4.5 --- docker-compose.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 65b16d8..6aaea68 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,9 @@ services: restart: ${RESTART_POLICY} security_opt: - no-new-privileges:true - pids_limit: 100 + # See https://docs.mattermost.com/administration-guide/scale/scaling-for-enterprise.html + # for guidance on memory limits based on your deployment size. + mem_limit: 16G read_only: true tmpfs: - /tmp @@ -28,7 +30,9 @@ services: restart: ${RESTART_POLICY} security_opt: - no-new-privileges:true - pids_limit: 200 + # See https://docs.mattermost.com/administration-guide/scale/scaling-for-enterprise.html + # for guidance on memory limits based on your deployment size. + mem_limit: 4G read_only: ${MATTERMOST_CONTAINER_READONLY} tmpfs: - /tmp