Last active
April 25, 2017 20:41
-
-
Save ei-grad/73a87885a98d203d994e76f45f01c478 to your computer and use it in GitHub Desktop.
Run elasticsearch in docker
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
| # 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