Answer the question
In order to leave comments, you need to log in
What is the correct way to run Laravel Queue in Docker?
Googled on the subject. Didn't find anything on the topic. It is strange that in 2019 with widespread containerization, this topic is not really raised.
I found such a method on Stackowerflow, but it has 3 minuses and it’s not clear why it’s bad?
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=docker exec php php /path/to/artisan queue:work redis --sleep=3 --tries=5
autostart=true
autorestart=true
user=root
numprocs=8
redirect_stderr=true
stdout_logfile=/var/logs/worker.log
Answer the question
In order to leave comments, you need to log in
Googled on the subject. Didn't find anything on the subject.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question