Merge pull request #513 from cristiancmello/add-rethinkdb

Add rethinkdb
This commit is contained in:
Bo-Yi Wu 2016-12-26 22:44:21 +08:00 committed by GitHub
commit 3557f508d0
3 changed files with 65 additions and 1 deletions

View File

@ -124,6 +124,7 @@ Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL` and `Red
- MariaDB - MariaDB
- MongoDB - MongoDB
- Neo4j - Neo4j
- RethinkDB
- **Cache Engines:** - **Cache Engines:**
- Redis - Redis
- Memcached - Memcached
@ -139,7 +140,7 @@ Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL` and `Red
- Beanstalkd (+ Beanstalkd Console) - Beanstalkd (+ Beanstalkd Console)
- RabbitMQ (+ RabbitMQ Console) - RabbitMQ (+ RabbitMQ Console)
- **Tools:** - **Tools:**
- Workspace (PHP7-CLI, Composer, Git, Node, Gulp, SQLite, xDebug, Vim...) - Workspace (PHP7-CLI, Composer, Git, Node, Gulp, SQLite, xDebug, Envoy, Vim...)
- PhpMyAdmin - PhpMyAdmin
- PgAdmin - PgAdmin
- ElasticSearch - ElasticSearch
@ -1356,6 +1357,46 @@ It should be like this:
####[Laravel Envoy Documentation Here](https://laravel.com/docs/5.3/envoy) ####[Laravel Envoy Documentation Here](https://laravel.com/docs/5.3/envoy)
<br>
<a name="Use-RethinkDB"></a>
### Use RethinkDB Container
The RethinkDB is an open-source Database for Real-time Web ([RethinkDB](https://rethinkdb.com/)).
A package ([Laravel RethinkDB](https://github.com/duxet/laravel-rethinkdb)) is being developed and was released a version for Laravel 5.2 (experimental).
1 - Run the RethinkDB Container (`rethinkdb`) with the `docker-compose up` command.
```bash
docker-compose up -d rethinkdb
```
2 - Access the RethinkDB Administration Console [http://localhost:8090/#tables](http://localhost:8090/#tables) for create a database called `database`.
3 - Add the RethinkDB configurations to the `config/database.php` configuration file:
```php
'connections' => [
'rethinkdb' => [
'name' => 'rethinkdb',
'driver' => 'rethinkdb',
'host' => env('DB_HOST', 'rethinkdb'),
'port' => env('DB_PORT', 28015),
'database' => env('DB_DATABASE', 'test'),
]
// ...
],
```
4 - Open your Laravel's `.env` file and update the following variables:
- set the `DB_CONNECTION` to your `rethinkdb`.
- set the `DB_HOST` to `rethinkdb`.
- set the `DB_PORT` to `28015`.
- set the `DB_DATABASE` to `database`.
<br> <br>
<a name="debugging"></a> <a name="debugging"></a>
@ -1504,6 +1545,7 @@ For special help with Docker and/or Laravel, you can schedule a live call with t
- [Matthew Tonkin Dunn](https://github.com/mattythebatty) (mattythebatty) - [Matthew Tonkin Dunn](https://github.com/mattythebatty) (mattythebatty)
- [Zhivitsa Kirill](https://github.com/zhikiri) (zhikiri) - [Zhivitsa Kirill](https://github.com/zhikiri) (zhikiri)
- [Benmag](https://github.com/benmag) - [Benmag](https://github.com/benmag)
- [Cristian Mello](https://github.com/cristiancmello) (cristiancmello)
**Other Contributors & Supporters:** **Other Contributors & Supporters:**

View File

@ -191,6 +191,15 @@ services:
volumes: volumes:
- mongo:/data/db - mongo:/data/db
### RethinkDB Container #######################################
rethinkdb:
build: ./rethinkdb
ports:
- "8090:8080"
volumes:
- rethinkdb:/data/rethinkdb_data
### Redis Container ######################################### ### Redis Container #########################################
redis: redis:
@ -332,6 +341,8 @@ volumes:
driver: "local" driver: "local"
mongo: mongo:
driver: "local" driver: "local"
rethinkdb:
driver: "local"
phpmyadmin: phpmyadmin:
driver: "local" driver: "local"
aerospike: aerospike:

11
rethinkdb/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM rethinkdb:latest
MAINTAINER Cristian Mello <cristianc.mello@gmail.com>
VOLUME /data/rethinkdb_data
RUN cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf
CMD ["rethinkdb", "--bind", "all"]
EXPOSE 8080