Skip to content

Instantly share code, notes, and snippets.

@ei-grad
Last active April 25, 2017 20:41
Show Gist options
  • Save ei-grad/73a87885a98d203d994e76f45f01c478 to your computer and use it in GitHub Desktop.
Save ei-grad/73a87885a98d203d994e76f45f01c478 to your computer and use it in GitHub Desktop.
Run elasticsearch in docker
# see https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
docker run -d --restart=always \
--name elasticsearch \
-p 127.0.0.1:9200:9200 \
-v /srv/elasticsearch:/usr/share/elasticsearch/data \
-e ES_JAVA_OPTS="-Xms1g -Xmx1g" \
-e bootstrap.memory_lock=true \
-e cluster.name=edadeal \
-e xpack.security.enabled=false \
--ulimit memlock=-1:-1 \
--ulimit nofile=65536:65536 \
--cap-add IPC_LOCK \
docker.elastic.co/elasticsearch/elasticsearch:5.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment