From 3772b29238db51ffe5b712e58d6f8b94ef89e764 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 4 Dec 2018 01:31:39 +0000 Subject: [PATCH] Increase zulip nofile limit to 40000 soft, 50000 hard. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To match zulip/puppet/zulip/files/limits.conf, zulip/puppet/zulip/files/supervisor/supervisord.conf. Otherwise we inherit the Docker daemon’s limits, which are too small when Docker is installed as a snap. Signed-off-by: Anders Kaseorg --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index f65e134..ca832b3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -62,3 +62,7 @@ services: # SETTING_PUSH_NOTIFICATION_BOUNCER_URL: 'https://push.zulipchat.com' volumes: - '/opt/docker/zulip/zulip:/data:rw' + ulimits: + nofile: + soft: 40000 + hard: 50000