From 37d96b5214ecc13b6cc56aa949ee4b91073f0b89 Mon Sep 17 00:00:00 2001 From: motilevy <3513686+motilevy@users.noreply.github.com> Date: Wed, 30 Sep 2020 17:44:49 -0400 Subject: [PATCH] fix max file descriptors error on docker-compse When using the docker-compose file, elasticsearch fails to start with the following error: ``` elasticsearch_1 | [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535] ``` Adding ``` nofile: soft: 65536 hard: 65536 ``` to the elasticsearch ulimit section fixes the issue. --- docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 720a867d..601e84e8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,6 +27,9 @@ services: memlock: soft: -1 hard: -1 + nofile: + soft: 65536 + hard: 65536 mem_limit: 2g kibana: @@ -52,4 +55,4 @@ services: depends_on: - kibana links: - - kibana:kibana \ No newline at end of file + - kibana:kibana