Files
sam-docs/sam/docker/api/supervisord.conf

36 lines
1.0 KiB
Plaintext
Raw Normal View History

[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/api/artisan queue:work database --queue=api,default --sleep=3 --tries=3 --timeout=1800 --max-jobs=100 --max-time=3600
process_name=%(program_name)s_%(process_num)02d
numprocs=1
directory=/var/www/api
autostart=true
autorestart=true
startsecs=5
startretries=3
stopwaitsecs=1830
stdout_logfile=/var/www/api/storage/logs/queue-worker.log
stdout_logfile_maxbytes=5MB
stderr_logfile=/var/www/api/storage/logs/queue-worker-error.log
stderr_logfile_maxbytes=5MB
[program:scheduler]
command=bash -c "while true; do php /var/www/api/artisan schedule:run --no-interaction; sleep 60; done"
process_name=%(program_name)s
numprocs=1
directory=/var/www/api
autostart=true
autorestart=true
startsecs=0
stdout_logfile=/var/www/api/storage/logs/scheduler.log
stdout_logfile_maxbytes=5MB
stderr_logfile=/var/www/api/storage/logs/scheduler-error.log
stderr_logfile_maxbytes=5MB