Skip to content

Instantly share code, notes, and snippets.

@mcescalante
Last active March 11, 2019 19:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcescalante/6be03751c820677cf0f15c7b864fa23a to your computer and use it in GitHub Desktop.
Save mcescalante/6be03751c820677cf0f15c7b864fa23a to your computer and use it in GitHub Desktop.
Elasticsearch development setup instructions

Running Elastisearch & Kibana locally for dev

  1. Download Docker Desktop for your platform https://www.docker.com/products/docker-desktop and run it

  2. Create a network which is helpful for easier running of multiple networked pieces:

    docker network create elastic

  3. Run OSS ES 6.6.1 on localhost:9200 in single node mode (note, this may take longer the first time since it needs to download the docker image)

    docker run --network=elastic --name=elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch-oss:6.6.1

  4. In a separate shell, run OSS Kibana on localhost:5601 (note, this may take longer the first time since it needs to download the docker image)

    docker run --network=elastic -p 5601:5601 docker.elastic.co/kibana/kibana-oss:6.6.1

  5. Check that things are running properly by going to localhost:9200 and localhost:5601. Kibana will give you the option to add some sample data to elasticsearch, which is helpful for exploring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment