Code Monkey home page Code Monkey logo

docker-laravel-queue-worker's Introduction

Laravel Queue Worker

A docker image for working with queues being monitored by supervisor as recommended by laravel.

Environment Configuration

Running with redis you can configure your QUEUE_CONNECTION environment variable to match your redis link. In our case the link is called redis so the default value will be redis.

The default queue name in laravel is called default. So we configured the QUEUE_NAME environment variable to this value.

If you want to use Laravel Horizon then you have to set the environment LARAVEL_HORIZON to true. By default it is false.

Since version v4.1 is it possible to modify the php memory limit. The environment variable PHP_MEMORY_LIMIT is by default set to 512 (MB). For unlimited memory usage just set it to -1. The queue worker command will also be called with the memory limit given to this value to be consistent.

For Laravel Horizon you have to configure your memory limit in your horizon.php configuration. The default php memory limit has to set within the container by setting PHP_MEMORY_LIMIT as well.

Docker Images

php docker image
7.0 ipunktbs/laravel-queue-worker:php7.0-v1.0
7.1 ipunktbs/laravel-queue-worker:php7.1-v2.0
7.2 ipunktbs/laravel-queue-worker:php7.2-v3.0
7.3 ipunktbs/laravel-queue-worker:php7.3-v4.0 - deprecated
7.3 ipunktbs/laravel-queue-worker:php7.3-v4.1
7.3 ipunktbs/laravel-queue-worker:php7.3-v4.2
7.3 ipunktbs/laravel-queue-worker:php7.3-v4.3
7.3 ipunktbs/laravel-queue-worker:php7.3-v4.4 - recommended

Changelog

v4.4

Added:

  • pcntl extension

v4.3

Added:

  • amqp extension

v4.2

Added:

  • bcmath extension for php (to support Laravel Telescope as well)
  • watchdog for supervisord to let the container restart when some of the programs died

docker-laravel-queue-worker's People

Contributors

ndrd avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.