Skip to content

Commit 1423a77

Browse files
hanzeiclaude
andauthored
Replace pids_limit with memory limits (#181)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 35e1bf1 commit 1423a77

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docker-compose.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ services:
55
restart: ${RESTART_POLICY}
66
security_opt:
77
- no-new-privileges:true
8-
pids_limit: 100
8+
# See https://docs.mattermost.com/administration-guide/scale/scaling-for-enterprise.html
9+
# for guidance on memory limits based on your deployment size.
10+
mem_limit: 16G
911
read_only: true
1012
tmpfs:
1113
- /tmp
@@ -28,7 +30,9 @@ services:
2830
restart: ${RESTART_POLICY}
2931
security_opt:
3032
- no-new-privileges:true
31-
pids_limit: 200
33+
# See https://docs.mattermost.com/administration-guide/scale/scaling-for-enterprise.html
34+
# for guidance on memory limits based on your deployment size.
35+
mem_limit: 4G
3236
read_only: ${MATTERMOST_CONTAINER_READONLY}
3337
tmpfs:
3438
- /tmp

0 commit comments

Comments
 (0)