Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
2fc3919598 | |||
978dd425b9 | |||
1b8726458f | |||
3557f508d0 | |||
1ce802f2cc | |||
f0eda43906 | |||
343a950adc | |||
0218ef6b9f | |||
33e8e91e49 | |||
e78b3ff799 | |||
13bdfa119d | |||
0eea7a639a | |||
f2db21f339 | |||
b10108a9b5 |
81
README.md
81
README.md
@ -53,6 +53,7 @@ Laradock is configured to run Laravel Apps by default, and it can be modified to
|
||||
- [Use phpMyAdmin](#Use-phpMyAdmin)
|
||||
- [Use pgAdmin](#Use-pgAdmin)
|
||||
- [Use ElasticSearch](#Use-ElasticSearch)
|
||||
- [Use Selenium](#Use-Selenium)
|
||||
- [CodeIgniter](#CodeIgniter):
|
||||
- [Install CodeIgniter](#Install-CodeIgniter)
|
||||
- [Misc](#Misc)
|
||||
@ -124,6 +125,7 @@ Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL` and `Red
|
||||
- MariaDB
|
||||
- MongoDB
|
||||
- Neo4j
|
||||
- RethinkDB
|
||||
- **Cache Engines:**
|
||||
- Redis
|
||||
- Memcached
|
||||
@ -139,7 +141,7 @@ Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL` and `Red
|
||||
- Beanstalkd (+ Beanstalkd Console)
|
||||
- RabbitMQ (+ RabbitMQ Console)
|
||||
- **Tools:**
|
||||
- Workspace (PHP7-CLI, Composer, Git, Node, Gulp, SQLite, xDebug, Vim...)
|
||||
- Workspace (PHP7-CLI, Composer, Git, Node, Gulp, SQLite, xDebug, Envoy, Vim...)
|
||||
- PhpMyAdmin
|
||||
- PgAdmin
|
||||
- ElasticSearch
|
||||
@ -1057,7 +1059,17 @@ docker exec {container-name} /usr/share/elasticsearch/bin/plugin install delete-
|
||||
docker restart {container-name}
|
||||
```
|
||||
|
||||
<br>
|
||||
<a name="Use-Selenium"></a>
|
||||
### Use Selenium
|
||||
|
||||
1 - Run the Selenium Container (`selenium`) with the `docker-compose up` command. Example:
|
||||
|
||||
```bash
|
||||
docker-compose up -d selenium
|
||||
```
|
||||
|
||||
2 - Open your browser and visit the localhost on port **4444** at the following URL: `http://localhost:4444/wd/hub`
|
||||
|
||||
|
||||
|
||||
@ -1330,6 +1342,72 @@ It should be like this:
|
||||
|
||||
2 - Re-build the containers `docker-compose build workspace php-fpm`
|
||||
|
||||
<br>
|
||||
<a name="Install-Laravel-Envoy"></a>
|
||||
### Install Laravel Envoy (Envoy Task Runner)
|
||||
|
||||
1 - Open the `docker-compose.yml` file
|
||||
<br>
|
||||
2 - Search for the `INSTALL_LARAVEL_ENVOY` argument under the Workspace Container
|
||||
<br>
|
||||
3 - Set it to `true`
|
||||
<br>
|
||||
|
||||
It should be like this:
|
||||
|
||||
```yml
|
||||
workspace:
|
||||
build:
|
||||
context: ./workspace
|
||||
args:
|
||||
- INSTALL_LARAVEL_ENVOY=true
|
||||
...
|
||||
```
|
||||
|
||||
4 - Re-build the containers `docker-compose build workspace`
|
||||
|
||||
####[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>
|
||||
<a name="debugging"></a>
|
||||
|
||||
@ -1478,6 +1556,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)
|
||||
- [Zhivitsa Kirill](https://github.com/zhikiri) (zhikiri)
|
||||
- [Benmag](https://github.com/benmag)
|
||||
- [Cristian Mello](https://github.com/cristiancmello) (cristiancmello)
|
||||
|
||||
**Other Contributors & Supporters:**
|
||||
|
||||
|
@ -25,6 +25,7 @@ services:
|
||||
- INSTALL_V8JS_EXTENSION=false
|
||||
- COMPOSER_GLOBAL_INSTALL=false
|
||||
- INSTALL_WORKSPACE_SSH=false
|
||||
- INSTALL_LARAVEL_ENVOY=false
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- NODE_VERSION=stable
|
||||
@ -49,7 +50,7 @@ services:
|
||||
- INSTALL_SOAP=false
|
||||
- INSTALL_MONGO=false
|
||||
- INSTALL_ZIP_ARCHIVE=false
|
||||
- INSTALL_BCMATH=true
|
||||
- INSTALL_BCMATH=false
|
||||
- INSTALL_MEMCACHED=false
|
||||
- INSTALL_OPCACHE=false
|
||||
- INSTALL_AEROSPIKE_EXTENSION=false
|
||||
@ -190,6 +191,15 @@ services:
|
||||
volumes:
|
||||
- mongo:/data/db
|
||||
|
||||
### RethinkDB Container #######################################
|
||||
|
||||
rethinkdb:
|
||||
build: ./rethinkdb
|
||||
ports:
|
||||
- "8090:8080"
|
||||
volumes:
|
||||
- rethinkdb:/data/rethinkdb_data
|
||||
|
||||
### Redis Container #########################################
|
||||
|
||||
redis:
|
||||
@ -314,6 +324,13 @@ services:
|
||||
links:
|
||||
- php-fpm
|
||||
|
||||
### Selenium Container #########################################
|
||||
|
||||
selenium:
|
||||
build: ./selenium
|
||||
ports:
|
||||
- "4444:4444"
|
||||
|
||||
### Volumes Setup ###########################################
|
||||
|
||||
volumes:
|
||||
@ -331,6 +348,8 @@ volumes:
|
||||
driver: "local"
|
||||
mongo:
|
||||
driver: "local"
|
||||
rethinkdb:
|
||||
driver: "local"
|
||||
phpmyadmin:
|
||||
driver: "local"
|
||||
aerospike:
|
||||
|
11
rethinkdb/Dockerfile
Normal file
11
rethinkdb/Dockerfile
Normal 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
|
5
selenium/Dockerfile
Normal file
5
selenium/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM selenium/standalone-chrome
|
||||
|
||||
MAINTAINER Edmund Luong <edmundvmluong@gmail.com>
|
||||
|
||||
EXPOSE 4444
|
@ -268,6 +268,29 @@ USER laradock
|
||||
RUN echo "" >> ~/.bashrc && \
|
||||
echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
|
||||
|
||||
#####################################
|
||||
# Laravel Artisan Alias
|
||||
#####################################
|
||||
USER root
|
||||
|
||||
RUN echo "" >> ~/.bashrc && \
|
||||
echo 'alias art="php artisan"' >> ~/.bashrc
|
||||
|
||||
#####################################
|
||||
# Laravel Envoy:
|
||||
#####################################
|
||||
USER laradock
|
||||
|
||||
ARG INSTALL_LARAVEL_ENVOY=true
|
||||
ENV INSTALL_LARAVEL_ENVOY ${INSTALL_LARAVEL_ENVOY}
|
||||
|
||||
RUN if [ ${INSTALL_LARAVEL_ENVOY} = true ]; then \
|
||||
# Install the Laravel Envoy
|
||||
echo "" >> ~/.bashrc && \
|
||||
echo 'export PATH="~/.composer/vendor/bin:$PATH"' >> ~/.bashrc \
|
||||
&& composer global require "laravel/envoy=~1.0" \
|
||||
;fi
|
||||
|
||||
#
|
||||
#--------------------------------------------------------------------------
|
||||
# Final Touch
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
|
||||
# Grab full name of php-fpm container
|
||||
PHP_FPM_CONTAINER=$(docker-compose ps | grep php-fpm | cut -d" " -f 1)
|
||||
PHP_FPM_CONTAINER=$(docker-compose ps | grep php-fpm | cut -d " " -f 1)
|
||||
|
||||
|
||||
# Grab OS type
|
||||
|
Reference in New Issue
Block a user