Skip to content

Instantly share code, notes, and snippets.

@run26kimo
Last active September 20, 2016 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save run26kimo/fcd2cf61f83d9c95cd1b0ec903d955bf to your computer and use it in GitHub Desktop.
Save run26kimo/fcd2cf61f83d9c95cd1b0ec903d955bf to your computer and use it in GitHub Desktop.
Mac use install elastic search by docker, use docker-compose version 2

Step1

Install elastic search plugin head

  • open a new terminal
  • cd docker_elasticsearch_2_1_2
  • docker ps, get CONTAINER ID
  • docker exec CONTAINER ID /usr/share/elasticsearch/bin/plugin install mobz/elasticsearch-head
  • open http://127.0.0.1:9201/_plugin/head/

version: '2'
services:
elasticsearch:
image: elasticsearch:2.1.2
ports:
- "9201:9200"
- "9301:9300"
volumes:
- "$PWD/esdata/plugins:/usr/share/elasticsearch/plugins"
- "$PWD/esdata:/usr/share/elasticsearch/data"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment