doc updates

This commit is contained in:
Mahmoud Zalt 2017-11-10 14:37:01 +02:00
parent 7138d7a13c
commit 34ef36cd7e
1 changed files with 7 additions and 4 deletions

View File

@ -574,13 +574,15 @@ docker-compose up -d php-worker
docker-compose up -d redis 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` 2 - Open your Laravel's `.env` file and set the `REDIS_HOST` to `redis`
```env ```env
REDIS_HOST=redis 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 ```php
'redis' => [ 'redis' => [
@ -820,19 +822,20 @@ docker-compose up -d elasticsearch
2 - Open your browser and visit the localhost on port **9200**: `http://localhost:9200` 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 ### 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 ```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 2 - Restart elasticsearch container
```bash ```bash
docker restart {container-name} docker-compose restart elasticsearch
``` ```