diff --git a/sam/docker/mng/supervisord.conf b/sam/docker/mng/supervisord.conf new file mode 100755 index 0000000..5afeefa --- /dev/null +++ b/sam/docker/mng/supervisord.conf @@ -0,0 +1,23 @@ +[supervisord] +nodaemon=true + +[program:php-fpm] +command=/usr/local/sbin/php-fpm + +[program:nginx] +command=nginx -g "daemon off;" + +[program:queue-worker] +command=php /var/www/sales/artisan queue:work database --sleep=3 --tries=1 --timeout=1800 --max-jobs=10 --max-time=3600 +process_name=%(program_name)s_%(process_num)02d +numprocs=2 +directory=/var/www/sales +autostart=true +autorestart=true +startsecs=5 +startretries=3 +stopwaitsecs=1830 +stdout_logfile=/var/www/sales/storage/logs/queue-worker.log +stdout_logfile_maxbytes=5MB +stderr_logfile=/var/www/sales/storage/logs/queue-worker-error.log +stderr_logfile_maxbytes=5MB \ No newline at end of file