I\'m trying to run the following command after the container is up and running.
php artisan queue:work -n -q &
The \"&\" is there b
use supervisor
apt-get install supervisor
cd /etc/supervisor/conf.d && sudo nano laravel-worker.conf
[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