From 34ef36cd7e004a565e7c77220049e470b83f5962 Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Fri, 10 Nov 2017 14:37:01 +0200 Subject: [PATCH] doc updates --- DOCUMENTATION/content/documentation/index.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/DOCUMENTATION/content/documentation/index.md b/DOCUMENTATION/content/documentation/index.md index 9900f648..113ca3cd 100644 --- a/DOCUMENTATION/content/documentation/index.md +++ b/DOCUMENTATION/content/documentation/index.md @@ -574,13 +574,15 @@ docker-compose up -d php-worker docker-compose up -d redis ``` +> To execute redis commands, enter the redis container first `docker-compose exec redis bash` then enter the `redis-cli`. + 2 - Open your Laravel's `.env` file and set the `REDIS_HOST` to `redis` ```env REDIS_HOST=redis ``` -If you don't find the `REDIS_HOST` variable in your `.env` file. Go to the database configuration file `config/database.php` and replace the default `127.0.0.1` IP with `redis` for Redis like this: +If you're using Laravel, and you don't find the `REDIS_HOST` variable in your `.env` file. Go to the database configuration file `config/database.php` and replace the default `127.0.0.1` IP with `redis` for Redis like this: ```php 'redis' => [ @@ -820,19 +822,20 @@ docker-compose up -d elasticsearch 2 - Open your browser and visit the localhost on port **9200**: `http://localhost:9200` +> The default username is `user` and the default password is `changeme`. ### 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). +1 - Install an ElasticSearch plugin. ```bash -docker exec {container-name} /usr/share/elasticsearch/bin/plugin install delete-by-query +docker-compose exec elasticsearch /usr/share/elasticsearch/bin/plugin install {plugin-name} ``` 2 - Restart elasticsearch container ```bash -docker restart {container-name} +docker-compose restart elasticsearch ```