diff --git a/README.md b/README.md index c6ef8984..f9aaa0e8 100644 --- a/README.md +++ b/README.md @@ -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 +
+ +### Run Laravel Queue Worker + +1 - First add `php-worker` container. It will be similar as like PHP-FPM Containter. +
+a) open the `docker-compose.yml` file +
+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 +``` +
### Use Redis