Many of us struggled to setup supervisor with Laravel Worker in our docker container or web-server. Setup laravel queue: php artisan queue:table php artisan migrate

Now it's time for setup supervisor into docker container where you can follow 2 steps: You can access docker bash and install supervisor by command scripts (It is for local testing not for global deployment or team collaboration)

Then, build and start the docker: docker compose build docker compose up -d // -d for running the docker in background

You may find the job list with status and unique id from job_batches table after starting supervisor like below shot: https://res.cloudinary.com/practicaldev/image/fetch/s--6YIn4DaV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/blfkpyn8psty83igwzf0.png
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners