Last active
February 4, 2019 11:11
-
-
Save inconvergent/c43cf399b58f8a4cc1e66eebdc4f877a to your computer and use it in GitHub Desktop.
run es via docker with mounted folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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