Skip to content

Commit 343a950

Browse files
add rethink-db container
1 parent 0218ef6 commit 343a950

2 files changed

Lines changed: 52 additions & 1 deletion

File tree

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL` and `Red
124124
- MariaDB
125125
- MongoDB
126126
- Neo4j
127+
- RethinkDB
127128
- **Cache Engines:**
128129
- Redis
129130
- Memcached
@@ -139,7 +140,7 @@ Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL` and `Red
139140
- Beanstalkd (+ Beanstalkd Console)
140141
- RabbitMQ (+ RabbitMQ Console)
141142
- **Tools:**
142-
- Workspace (PHP7-CLI, Composer, Git, Node, Gulp, SQLite, xDebug, Vim...)
143+
- Workspace (PHP7-CLI, Composer, Git, Node, Gulp, SQLite, xDebug, Envoy, Vim...)
143144
- PhpMyAdmin
144145
- PgAdmin
145146
- ElasticSearch
@@ -1356,6 +1357,44 @@ It should be like this:
13561357

13571358
####[Laravel Envoy Documentation Here](https://laravel.com/docs/5.3/envoy)
13581359

1360+
<br>
1361+
<a name="Use-RethinkDB"></a>
1362+
### Use RethinkDB Container
1363+
1364+
The RethinkDB is an open-source Database for Real-time Web ([RethinkDB](https://rethinkdb.com/)).
1365+
A package ([Laravel RethinkDB](https://github.com/duxet/laravel-rethinkdb)) is being developed and was released a version for Laravel 5.2 (experimental).
1366+
1367+
1 - Run the RethinkDB Container (`rethinkdb`) with the `docker-compose up` command.
1368+
1369+
```bash
1370+
docker-compose up -d rethinkdb
1371+
```
1372+
1373+
2 - Add the RethinkDB configurations to the `config/database.php` configuration file:
1374+
1375+
```php
1376+
'connections' => [
1377+
1378+
'rethinkdb' => [
1379+
'name' => 'rethinkdb',
1380+
'driver' => 'rethinkdb',
1381+
'host' => env('DB_HOST', 'rethinkdb'),
1382+
'port' => env('DB_PORT', 28015),
1383+
'database' => env('DB_DATABASE', 'test'),
1384+
]
1385+
1386+
// ...
1387+
1388+
],
1389+
```
1390+
1391+
3 - Open your Laravel's `.env` file and update the following variables:
1392+
1393+
- set the `DB_CONNECTION` to your `rethinkdb`.
1394+
- set the `DB_HOST` to `rethinkdb`.
1395+
- set the `DB_PORT` to `28015`.
1396+
- set the `DB_DATABASE` to `database`.
1397+
13591398
<br>
13601399
<a name="debugging"></a>
13611400

@@ -1504,6 +1543,7 @@ For special help with Docker and/or Laravel, you can schedule a live call with t
15041543
- [Matthew Tonkin Dunn](https://github.com/mattythebatty) (mattythebatty)
15051544
- [Zhivitsa Kirill](https://github.com/zhikiri) (zhikiri)
15061545
- [Benmag](https://github.com/benmag)
1546+
- [Cristian Mello](https://github.com/cristiancmello) (cristiancmello)
15071547

15081548
**Other Contributors & Supporters:**
15091549

rethinkdb/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM rethinkdb:latest
2+
3+
MAINTAINER Cristian Mello <cristianc.mello@gmail.com>
4+
5+
VOLUME /data/rethinkdb_data
6+
7+
RUN cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf
8+
9+
CMD ["rethinkdb", "--bind", "all"]
10+
11+
EXPOSE 8080

0 commit comments

Comments
 (0)