90 lines
2.2 KiB
Plaintext
90 lines
2.2 KiB
Plaintext
[unix_http_server]
|
|
file=/var/run/supervisor.sock
|
|
chmod=0700
|
|
|
|
[supervisord]
|
|
logfile=/var/log/supervisord.log
|
|
logfile_maxbytes=50MB
|
|
logfile_backups=10
|
|
loglevel=info
|
|
pidfile=/var/run/supervisord.pid
|
|
nodaemon=true
|
|
minfds=1024
|
|
minprocs=200
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
|
|
|
[supervisorctl]
|
|
serverurl=unix:///var/run/supervisor.sock
|
|
|
|
[program:nginx]
|
|
command=nginx -g "daemon off;"
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/var/log/nginx.log
|
|
stderr_logfile=/var/log/nginx.log
|
|
|
|
[program:php-fpm]
|
|
command=php-fpm -F
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/var/log/php-fpm.log
|
|
stderr_logfile=/var/log/php-fpm.log
|
|
|
|
[program:memcached]
|
|
command=memcached -u www-data -m 64 -p 11211 -l 127.0.0.1 -v
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/var/log/memcached.log
|
|
stderr_logfile=/var/log/memcached.log
|
|
|
|
[program:redis]
|
|
command=redis-server --bind 127.0.0.1 --port 6379 --daemonize no
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/var/log/redis.log
|
|
stderr_logfile=/var/log/redis.log
|
|
|
|
[program:inertia-ssr]
|
|
process_name=%(program_name)s_%(process_num)02d
|
|
command=bash -c 'exec php /app/artisan inertia:start-ssr --runtime=bun'
|
|
user=www-data
|
|
autostart=true
|
|
autorestart=true
|
|
stderr_logfile=/var/log/worker-inertia-ssr.log
|
|
stdout_logfile=/var/log/worker-inertia-ssr.log
|
|
|
|
[program:queue-worker-emails]
|
|
process_name=%(program_name)s
|
|
command=php /app/artisan queue:work database --queue=emails --sleep=1 --tries=5 --max-time=3600
|
|
user=www-data
|
|
autostart=true
|
|
autorestart=true
|
|
redirect_stderr=true
|
|
stdout_logfile=/var/log/queue-worker-emails.log
|
|
stopwaitsecs=3600
|
|
numprocs=1
|
|
|
|
[program:queue-worker]
|
|
process_name=%(program_name)s_%(process_num)02d
|
|
command=php /app/artisan queue:work database --queue=default --sleep=3 --tries=3 --max-time=3600
|
|
user=www-data
|
|
autostart=true
|
|
autorestart=true
|
|
redirect_stderr=true
|
|
stdout_logfile=/var/log/queue-worker.log
|
|
stopwaitsecs=3600
|
|
numprocs=2
|
|
|
|
[program:queue-worker-ai]
|
|
process_name=%(program_name)s_%(process_num)02d
|
|
command=php /app/artisan queue:work database --queue=ai --sleep=1 --tries=3 --max-time=3600
|
|
user=www-data
|
|
autostart=true
|
|
autorestart=true
|
|
redirect_stderr=true
|
|
stdout_logfile=/var/log/queue-worker-ai.log
|
|
stopwaitsecs=3600
|
|
numprocs=2
|