53 lines
1.4 KiB
Text
53 lines
1.4 KiB
Text
|
|
[supervisord]
|
||
|
|
nodaemon=true
|
||
|
|
user=root
|
||
|
|
logfile=/var/log/supervisor/supervisord.log
|
||
|
|
pidfile=/var/run/supervisord.pid
|
||
|
|
loglevel=info
|
||
|
|
|
||
|
|
[program:mysql]
|
||
|
|
command=/usr/sbin/mysqld --user=mysql --console
|
||
|
|
autostart=true
|
||
|
|
autorestart=true
|
||
|
|
stdout_logfile=/var/log/supervisor/mysql.log
|
||
|
|
stderr_logfile=/var/log/supervisor/mysql_error.log
|
||
|
|
priority=1
|
||
|
|
|
||
|
|
[program:php-fpm]
|
||
|
|
command=/usr/sbin/php-fpm8.2 -F
|
||
|
|
autostart=true
|
||
|
|
autorestart=true
|
||
|
|
stdout_logfile=/var/log/supervisor/php-fpm.log
|
||
|
|
stderr_logfile=/var/log/supervisor/php-fpm_error.log
|
||
|
|
priority=10
|
||
|
|
|
||
|
|
[program:nginx]
|
||
|
|
command=/usr/sbin/nginx -g "daemon off;"
|
||
|
|
autostart=true
|
||
|
|
autorestart=true
|
||
|
|
stdout_logfile=/var/log/supervisor/nginx.log
|
||
|
|
stderr_logfile=/var/log/supervisor/nginx_error.log
|
||
|
|
priority=20
|
||
|
|
|
||
|
|
[program:frontend]
|
||
|
|
command=/usr/bin/node /var/www/frontend/node_modules/@react-router/serve/dist/cli.js /var/www/frontend/build/server/index.js
|
||
|
|
directory=/var/www/frontend
|
||
|
|
autostart=true
|
||
|
|
autorestart=true
|
||
|
|
stdout_logfile=/var/log/supervisor/frontend.log
|
||
|
|
stderr_logfile=/var/log/supervisor/frontend_error.log
|
||
|
|
environment=PORT=3000,NODE_ENV=production
|
||
|
|
priority=30
|
||
|
|
user=www-data
|
||
|
|
|
||
|
|
[program:queue-worker]
|
||
|
|
command=/usr/bin/php /var/www/backend/artisan queue:work --sleep=3 --tries=3 --max-time=3600
|
||
|
|
directory=/var/www/backend
|
||
|
|
autostart=true
|
||
|
|
autorestart=true
|
||
|
|
stdout_logfile=/var/log/supervisor/queue-worker.log
|
||
|
|
stderr_logfile=/var/log/supervisor/queue-worker_error.log
|
||
|
|
priority=40
|
||
|
|
user=www-data
|
||
|
|
numprocs=1
|