Skip to content

Commit 4f7b0ec

Browse files
authored
Merge pull request laradock#390 from LaraDock/elasticsearch
Add install elasticsearch plugin section.
2 parents 6a3137f + a0981aa commit 4f7b0ec

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,19 @@ docker-compose up -d elasticsearch
788788

789789
2 - Open your browser and visit the localhost on port **9200**: `http://localhost:9200`
790790

791+
### Install ElasticSearch Plugin
792+
793+
1 - Install the ElasticSearch plugin like [delete-by-query](https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugins-delete-by-query.html).
794+
795+
```bash
796+
docker exec {container-name} /usr/share/elasticsearch/bin/plugin install delete-by-query
797+
```
798+
799+
2 - Restart elasticsearch container
800+
801+
```bash
802+
docker restart {container-name}
803+
```
791804

792805
<br>
793806
<a name="PHP"></a>

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,6 @@ services:
309309
- ./data/sessions:/sessions
310310
- ./data/caddy:/root/.caddy
311311
- ./data/elasticsearch/data:/usr/share/elasticsearch/data
312+
- ./data/elasticsearch/pkugins:/usr/share/elasticsearch/pkugins
312313

313314
### Add more Containers below ###############################

0 commit comments

Comments
 (0)