From a0981aa83606c55703e5f51135d0decf2303066c Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 26 Oct 2016 09:40:53 +0800 Subject: [PATCH] Add install elasticsearch plugin section. Signed-off-by: Bo-Yi Wu --- README.md | 13 +++++++++++++ docker-compose.yml | 1 + 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 53b6080c..362e24dd 100644 --- a/README.md +++ b/README.md @@ -788,6 +788,19 @@ docker-compose up -d elasticsearch 2 - Open your browser and visit the localhost on port **9200**: `http://localhost:9200` +### Install ElasticSearch Plugin + +1 - Install the ElasticSearch plugin like [delete-by-query](https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugins-delete-by-query.html). + +```bash +docker exec {container-name} /usr/share/elasticsearch/bin/plugin install delete-by-query +``` + +2 - Restart elasticsearch container + +```bash +docker restart {container-name} +```
diff --git a/docker-compose.yml b/docker-compose.yml index a3b4eadf..495e6f83 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -309,5 +309,6 @@ services: - ./data/sessions:/sessions - ./data/caddy:/root/.caddy - ./data/elasticsearch/data:/usr/share/elasticsearch/data + - ./data/elasticsearch/pkugins:/usr/share/elasticsearch/pkugins ### Add more Containers below ###############################