Skip to content

Latest commit

 

History

History
39 lines (21 loc) · 1.08 KB

README.md

File metadata and controls

39 lines (21 loc) · 1.08 KB

tutum-docker-elasticsearch

Simple docker image to run an Elasticsearch server

Usage

To create the image tutum/elasticsearch, execute the following command on tutum-docker-influxdb folder:

docker build -t tutum/elasticsearch .

You can also pull the image from the registry:

docker pull tutum/elasticsearch

Running elasticsearch

Start your image binding the external ports 9200 to your container:

docker run -d -p 9200:9200 tutum/elasticsearch

Now you can connect to Elasticsearch by:

curl 127.0.0.1:9200

Running elasticsearch with HTTP basic authentication

Use environment variables ELASTICSEARCH_USER and ELASTICSEARCH_PASS to specify the username and password and activated HTTP basic authentication (HTTP basic auth is disabled by default):

docker run -d -p 9200:9200 -e ELASTICSEARCH_USER=admin -e ELASTICSEARCH_PASS=mypass tutum/elasticsearch

Now you can connect to Elasticsearch by:

curl admin:[email protected]:9200