Skip to content

Commit

Permalink
fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
miiu96 committed Mar 28, 2022
1 parent e8dc091 commit 2a15205
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
environment:
- "discovery.type=single-node"
- "xpack.security.enabled=false"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
Expand Down
4 changes: 3 additions & 1 deletion scripts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ start() {
docker pull docker.elastic.co/elasticsearch/elasticsearch:${ES_VERSION}

docker rm ${IMAGE_NAME} 2> /dev/null
docker run -d --name "${IMAGE_NAME}" -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:${ES_VERSION}
docker run -d --name "${IMAGE_NAME}" -p 9200:9200 -p 9300:9300 \
-e "discovery.type=single-node" -e "xpack.security.enabled=false" -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" \
docker.elastic.co/elasticsearch/elasticsearch:${ES_VERSION}

# Wait elastic cluster to start
echo "Waiting Elasticsearch cluster to start..."
Expand Down

0 comments on commit 2a15205

Please sign in to comment.