From 37508bb3ca07db747faf5739b30113288e93749b Mon Sep 17 00:00:00 2001 From: Max Mekenya Date: Sun, 5 Feb 2017 03:13:25 +1000 Subject: [PATCH] Add Queue Worker as a starting point (#581) * Add Queue Worker as an starting point By https://github.com/laradock/laradock/issues/14#issuecomment-276374969 * Fix typo --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index c6ef898..f9aaa0e 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