Files
openbilibili/vendor/gopkg.in/olivere/elastic.v5/run-es.sh

4 lines
392 B
Bash
Raw Normal View History

2019-04-22 20:46:32 +08:00
#!/bin/sh
VERSION=${VERSION:=5.6.9}
docker run --rm --privileged=true -p 9200:9200 -p 9300:9300 -v "$PWD/etc:/usr/share/elasticsearch/config" -e "bootstrap.memory_lock=true" -e "ES_JAVA_OPTS=-Xms1g -Xmx1g" docker.elastic.co/elasticsearch/elasticsearch:$VERSION elasticsearch -Expack.security.enabled=false -Expack.ml.enabled=false -Escript.inline=true -Escript.stored=true -Escript.file=true