Elasticsearch Docker image based on Alpine Linux
Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
config
sut
Dockerfile
README.md
docker-compose.production.yml
docker-compose.test.yml

README.md

Elasticsearch

Elasticsearch Docker image based on Alpine Linux.

Tags

  • 2.3, 2.3.5
  • 5.0.2
  • 5.1.1-1, latest

Exposed ports

  • 9200, 9300

Env. variables

Variable Description Default value Example
JAVA_HEAP_SIZE Java heap size in MB 1024
java_max_direct_mem_size Java max direct memory size
java_opts Java options
FORCE_HOSTNAME IP on which ES will be listening 0.0.0.0 127.0.0.1

When JAVA_HEAP_SIZE is empty, the value is set depending on system max memory (256 to 10% of max memory).

System prerequisites

Elastic highly recommends to set the VM mmap count to 262144 on the host: https://www.elastic.co/guide/en/elasticsearch/reference/5.0/vm-max-map-count.html

sudo sysctl -w vm.max_map_count=262144

The hard limit for file descriptors should be at least 65535. You can check it with ulimit -Hn.