Compare commits

...

3 Commits

2 changed files with 29 additions and 2 deletions

View File

@ -65,6 +65,7 @@ Laradock is configured to run Laravel Apps by default, and it can be modified to
- [Laravel](#Laravel):
- [Install Laravel from a Docker Container](#Install-Laravel)
- [Run Artisan Commands](#Run-Artisan-Commands)
- [Run Laravel Queue Worker](#Run-Laravel-Queue-Worker)
- [Use Redis](#Use-Redis)
- [Use Mongo](#Use-Mongo)
- [Use PhpMyAdmin](#Use-phpMyAdmin)
@ -928,6 +929,31 @@ phpunit
<br>
<a name="Run-Laravel-Queue-Worker"></a>
### Run Laravel Queue Worker
1 - First add `php-worker` container. It will be similar as like PHP-FPM Containter.
<br>
a) open the `docker-compose.yml` file
<br>
b) add a new service container by simply copy-paste this section below PHP-FPM container
```yaml
php-worker:
build:
context: ./php-fpm
dockerfile: Dockerfile-70 # or Dockerfile-56, choose your PHP-FPM container setting
volumes_from:
- applications
command: php artisan queue:work
```
2 - Start everything up
```bash
docker-compose up -d php-worker
```
<br>
<a name="Use-Redis"></a>
### Use Redis
@ -1837,7 +1863,8 @@ For special help with Docker and/or Laravel, you can schedule a live call with t
- [Mahmoud Zalt](https://github.com/Mahmoudz) (mahmoudz) [ [Twitter](https://twitter.com/Mahmoud_Zalt) | [Personal Site](http://zalt.me) | [Linkedin](https://www.linkedin.com/in/mahmoudzalt) ]
- [Bo-Yi Wu](https://github.com/appleboy) (appleboy)
- [Philippe Trépanier](https://github.com/philtrep) (philtrep)
- YOU?! Join Us.
- [Mike Erickson](https://github.com/mikeerickson) (mikeerickson)
- Join Us!
**Amazing Contributors:**

View File

@ -1,4 +1,4 @@
#! /bin/sh
#! /bin/bash
# Colors used for status updates
ESC_SEQ="\x1b["