Feb 1, 2020
0
Level 3
Docker conf with Supervisor
This is the configuration of laravel-worker.conf copied in /etc/supervisor/conf.d/laravel-worker.conf
[supervisord]
nodaemon=true
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/html/artisan queue:work sqs --tries=3 --delay=3
autostart=true
autorestart=true
redirect_stderr=true
numprocs=1
stdout_logfile=/var/log/worker.log
I use Bitbucket Pipelines for deployment
- service supervisor start && supervisorctl reread && supervisorctl update && supervisorctl start laravel-worker:*
- php artisan queue:restart
but the problem is that I cannot make the supervisor to handle the queues automatically. I should always do SSH login and write supervisordto process the queues. Has someone worked with docker and supervisor to give me a tip?
Please or to participate in this conversation.