mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-02 04:53:19 +00:00
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.
This commit is contained in:
@@ -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
|
||||
- kibana:kibana
|
||||
|
||||
Reference in New Issue
Block a user