Skip to content

ca91/docker-elasticsearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supported tags and respective Dockerfile links

What is elasticsearch?

Elasticsearch is a distributed, RESTful search and analytics engine capable of solving a growing number of use cases. As the heart of the Elastic Stack, it centrally stores your data so you can discover the expected and uncover the unexpected. This image is not including x-pack but is using search-guard instead of shield for roles/users managment, which means you can deploy as many nodes as you want for free.

How To Use

run the following command on your host:

sysctl -w vm.max_map_count=262144

You can set it permanently by modifying vm.max_map_count setting in your /etc/sysctl.conf.

docker engine

docker run -d -p 9200:9200 -p 9300:9300 -e ELASTIC_PWD=dockerrocks -e KIBANA_PWD=brucewayne  khezen/elasticsearch:latest   

docker-compose

version: '2'
services:
    elasticsearch:
        image: khezen/elasticsearch:5
        environment:
            ELASTIC_PWD: changeme
            KIBANA_PWD: changeme
        volumes:
            - /data/elasticsearch:/usr/share/elasticsearch/data
            - /etc/elasticsearch:/usr/share/elasticsearch/config 
        ports:
             - "9200:9200"
             - "9300:9300"
        network_mode: bridge
        restart: always

Environment Variables

CLUSTER_NAME | elasticsearch

ES cluster name.

HEAP_SIZE | 1g

Defines the maximum memory allocated to elasticsearch.

ELASTIC_PWD | changeme

password for built-in user elastic.

KIBANA_PWD | changeme

password for built-in user kibana.

LOGSTASH_PWD | changeme

password for built-in user logstash.

BEATS_PWD | changeme

password for built-in user beats.

CA_PWD | changeme

CA certificate passphrase.

TS_PWD | changeme

Truststore(public keys storage) password.

KS_PWD | changeme

Keystore(private key storage) password.

Configure Elasticsearch

Configuration file is located in /etc/elasticsearch/elasticsearch.yml if you follow the same volume mapping as in the docker-compose example above.

You can find default config there.

You can find help with elasticsearch configuration there.

User Feedback

Issues

If you have any problems with or questions about this image, please ask for help through a GitHub issue.

About

Elasticsearch Docker image including search-guard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%