Skip to content

Instantly share code, notes, and snippets.

@inconvergent
Last active February 4, 2019 11:11
Show Gist options
  • Save inconvergent/c43cf399b58f8a4cc1e66eebdc4f877a to your computer and use it in GitHub Desktop.
Save inconvergent/c43cf399b58f8a4cc1e66eebdc4f877a to your computer and use it in GitHub Desktop.
run es via docker with mounted folder
#!/bin/bash
here=`pwd`
fld="$here/data"
mkdir -p "$fld"
docker run -p 9200:9200 \
-p 9300:9300 \
-e "discovery.type=single-node" \
-v "$fld:/usr/share/elasticsearch/data" \
docker.elastic.co/elasticsearch/elasticsearch:6.6.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment