Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.4 KB

README.md

File metadata and controls

57 lines (39 loc) · 1.4 KB

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