Skip to content

Commit 3557f50

Browse files
authored
Merge pull request laradock#513 from cristiancmello/add-rethinkdb
Add rethinkdb
2 parents 0218ef6 + 1ce802f commit 3557f50

3 files changed

Lines changed: 65 additions & 1 deletion

File tree

README.md

Lines changed: 43 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,46 @@ 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 - Access the RethinkDB Administration Console [http://localhost:8090/#tables](http://localhost:8090/#tables) for create a database called `database`.
1374+
1375+
3 - Add the RethinkDB configurations to the `config/database.php` configuration file:
1376+
1377+
```php
1378+
'connections' => [
1379+
1380+
'rethinkdb' => [
1381+
'name' => 'rethinkdb',
1382+
'driver' => 'rethinkdb',
1383+
'host' => env('DB_HOST', 'rethinkdb'),
1384+
'port' => env('DB_PORT', 28015),
1385+
'database' => env('DB_DATABASE', 'test'),
1386+
]
1387+
1388+
// ...
1389+
1390+
],
1391+
```
1392+
1393+
4 - Open your Laravel's `.env` file and update the following variables:
1394+
1395+
- set the `DB_CONNECTION` to your `rethinkdb`.
1396+
- set the `DB_HOST` to `rethinkdb`.
1397+
- set the `DB_PORT` to `28015`.
1398+
- set the `DB_DATABASE` to `database`.
1399+
13591400
<br>
13601401
<a name="debugging"></a>
13611402

@@ -1504,6 +1545,7 @@ For special help with Docker and/or Laravel, you can schedule a live call with t
15041545
- [Matthew Tonkin Dunn](https://github.com/mattythebatty) (mattythebatty)
15051546
- [Zhivitsa Kirill](https://github.com/zhikiri) (zhikiri)
15061547
- [Benmag](https://github.com/benmag)
1548+
- [Cristian Mello](https://github.com/cristiancmello) (cristiancmello)
15071549

15081550
**Other Contributors & Supporters:**
15091551

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,15 @@ services:
190190
- "27017:27017"
191191
volumes:
192192
- mongo:/data/db
193+
194+
### RethinkDB Container #######################################
195+
196+
rethinkdb:
197+
build: ./rethinkdb
198+
ports:
199+
- "8090:8080"
200+
volumes:
201+
- rethinkdb:/data/rethinkdb_data
193202

194203
### Redis Container #########################################
195204

@@ -332,6 +341,8 @@ volumes:
332341
driver: "local"
333342
mongo:
334343
driver: "local"
344+
rethinkdb:
345+
driver: "local"
335346
phpmyadmin:
336347
driver: "local"
337348
aerospike:

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)