Skip to content

the-startup-stack/docker-elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Elastic docker image

![the-startup-stack](http://aviioblog.s3.amazonaws.com/logo-black.png)

the-startup-stack project Read More

Installation

Pull and run elasticsearch

For the sake of the example <data-dir> will be data in the current folder.

  • Run docker pull thestartupstack/elasticsearch
  • Create persistent/shared directories <data-dir>
  • Create Elasticsearch config file at <data-dir>.
path:
  logs: /data/log
  data: /data/data
  • Start the container
docker run -p 9200:9200 \
 --name elastic -d -p 9300:9300 \
 -v "$PWD/data":/data \
 thestartupstack/elasticsearch /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml

Boot2docker

If you are running boot2docker, you need to make sure 9200 and 9300 are exposed

If the image (boot2docker VM) is already running run this command:

VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port92000,tcp,,9200,,9200"
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port9300,tcp,,9300,,9300"

If not, run this command

  VBoxManage controlvm "boot2docker-vm" natpf1 "tcp-port92000,tcp,,9200,,9200"
  VBoxManage controlvm "boot2docker-vm" natpf1 "tcp-port9300,tcp,,9300,,9300"

Contribution

Read Here

LICENSE

MIT

About

Elastic, dockerized

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages