|
|
|
|
@ -1,7 +1,5 @@
|
|
|
|
|
# Setup Elasticsearch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- For single node setup
|
|
|
|
|
- [Reference](https://www.elastic.co/guide/en/kibana/8.2/docker.html)
|
|
|
|
|
```shell
|
|
|
|
|
@ -35,3 +33,17 @@ $ docker-compose down
|
|
|
|
|
# Remove all volume and network
|
|
|
|
|
$ docker-compose down -v
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Fixes
|
|
|
|
|
|
|
|
|
|
- [Virtual Memory Issue] (https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html)
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
# use --ulimit nofile=65536:65536 to fix issue#1
|
|
|
|
|
$ docker run --ulimit nofile=65536:65536 -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --name elk sebp/elk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Temporary fix virtual memory issue
|
|
|
|
|
$ sysctl -w vm.max_map_count=262144
|
|
|
|
|
|
|
|
|
|
```
|