118 lines
4.1 KiB
Text
118 lines
4.1 KiB
Text
|
[unix_http_server]
|
||
|
file=/tmp/supervisor.sock ; (the path to the socket file)
|
||
|
|
||
|
[supervisord]
|
||
|
; logfile=/tmp/supervisord.log ; (main log file;default.conf $CWD/supervisord.log)
|
||
|
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default.conf 50MB)
|
||
|
logfile_backups=10 ; (num of main logfile rotation backups;default.conf 10)
|
||
|
loglevel=info ; (log level;default.conf info; others: debug,warn,trace)
|
||
|
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default.conf supervisord.pid)
|
||
|
nodaemon=false ; (start in foreground if true;default.conf false)
|
||
|
minfds=1024 ; (min. avail startup file descriptors;default.conf 1024)
|
||
|
minprocs=200 ; (min. avail process descriptors;default.conf 200)
|
||
|
user=root ;
|
||
|
|
||
|
; the below section must remain in the config file for RPC
|
||
|
; (supervisorctl/web interface) to work, additional interfaces may be
|
||
|
; added by defining them in separate rpcinterface: sections
|
||
|
[rpcinterface:supervisor]
|
||
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||
|
|
||
|
[supervisorctl]
|
||
|
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
|
||
|
|
||
|
[program:php7-fpm]
|
||
|
command=service php7.2-fpm start
|
||
|
autostart=true
|
||
|
autorestart=true
|
||
|
priority=5
|
||
|
stdout_events_enabled=true
|
||
|
stderr_events_enabled=true
|
||
|
|
||
|
[program:nginx]
|
||
|
command=service nginx start
|
||
|
autostart=true
|
||
|
autorestart=true
|
||
|
priority=10
|
||
|
stdout_events_enabled=true
|
||
|
stderr_events_enabled=true
|
||
|
|
||
|
[program:v0-webhooks]
|
||
|
command=php /usr/share/nginx/html/vendor/bin/resque
|
||
|
autostart=true
|
||
|
autorestart=true
|
||
|
priority=10
|
||
|
environment=QUEUE='v0-webhooks',APP_INCLUDE='/usr/share/nginx/html/app/v0/workers/webhooks.php',REDIS_BACKEND='%(ENV__APP_REDIS_HOST)s:%(ENV__APP_REDIS_PORT)s'
|
||
|
stdout_events_enabled=true
|
||
|
stderr_events_enabled=true
|
||
|
stopsignal=QUIT
|
||
|
|
||
|
[program:v0-audits]
|
||
|
command=php /usr/share/nginx/html/vendor/bin/resque
|
||
|
autostart=true
|
||
|
autorestart=true
|
||
|
priority=10
|
||
|
environment=QUEUE='v0-audits',APP_INCLUDE='/usr/share/nginx/html/app/v0/workers/audits.php',REDIS_BACKEND='%(ENV__APP_REDIS_HOST)s:%(ENV__APP_REDIS_PORT)s'
|
||
|
stdout_events_enabled=true
|
||
|
stderr_events_enabled=true
|
||
|
stopsignal=QUIT
|
||
|
|
||
|
[program:v0-usage]
|
||
|
command=php /usr/share/nginx/html/vendor/bin/resque
|
||
|
autostart=true
|
||
|
autorestart=true
|
||
|
priority=10
|
||
|
environment=QUEUE='v0-usage',APP_INCLUDE='/usr/share/nginx/html/app/v0/workers/usage.php',REDIS_BACKEND='%(ENV__APP_REDIS_HOST)s:%(ENV__APP_REDIS_PORT)s'
|
||
|
stdout_events_enabled=true
|
||
|
stderr_events_enabled=true
|
||
|
stopsignal=QUIT
|
||
|
|
||
|
[program:v1-webhooks]
|
||
|
command=php /usr/share/nginx/html/vendor/bin/resque
|
||
|
autostart=true
|
||
|
autorestart=true
|
||
|
priority=10
|
||
|
environment=QUEUE='v1-webhooks',APP_INCLUDE='/usr/share/nginx/html/app/workers/webhooks.php',REDIS_BACKEND='%(ENV__APP_REDIS_HOST)s:%(ENV__APP_REDIS_PORT)s'
|
||
|
stdout_events_enabled=true
|
||
|
stderr_events_enabled=true
|
||
|
stopsignal=QUIT
|
||
|
|
||
|
[program:v1-audits]
|
||
|
command=php /usr/share/nginx/html/vendor/bin/resque
|
||
|
autostart=true
|
||
|
autorestart=true
|
||
|
priority=10
|
||
|
environment=QUEUE='v1-audits',APP_INCLUDE='/usr/share/nginx/html/app/workers/audits.php',REDIS_BACKEND='%(ENV__APP_REDIS_HOST)s:%(ENV__APP_REDIS_PORT)s'
|
||
|
stdout_events_enabled=true
|
||
|
stderr_events_enabled=true
|
||
|
stopsignal=QUIT
|
||
|
|
||
|
[program:v1-usage]
|
||
|
command=php /usr/share/nginx/html/vendor/bin/resque
|
||
|
autostart=true
|
||
|
autorestart=true
|
||
|
priority=10
|
||
|
environment=QUEUE='v1-usage',APP_INCLUDE='/usr/share/nginx/html/app/workers/usage.php',REDIS_BACKEND='%(ENV__APP_REDIS_HOST)s:%(ENV__APP_REDIS_PORT)s'
|
||
|
stdout_events_enabled=true
|
||
|
stderr_events_enabled=true
|
||
|
stopsignal=QUIT
|
||
|
|
||
|
[program:v1-tasks]
|
||
|
command=php /usr/share/nginx/html/vendor/bin/resque
|
||
|
autostart=true
|
||
|
autorestart=true
|
||
|
priority=10
|
||
|
environment=QUEUE='v1-tasks',APP_INCLUDE='/usr/share/nginx/html/app/workers/tasks.php',REDIS_BACKEND='%(ENV__APP_REDIS_HOST)s:%(ENV__APP_REDIS_PORT)s'
|
||
|
stdout_events_enabled=true
|
||
|
stderr_events_enabled=true
|
||
|
stopsignal=QUIT
|
||
|
|
||
|
[program:v1-schedule]
|
||
|
command=php /usr/share/nginx/html/vendor/chrisboulton/php-resque-scheduler/resque-scheduler.php
|
||
|
autostart=true
|
||
|
autorestart=true
|
||
|
priority=10
|
||
|
environment=REDIS_BACKEND='%(ENV__APP_REDIS_HOST)s:%(ENV__APP_REDIS_PORT)s',RESQUE_PHP='/usr/share/nginx/html/vendor/autoload.php'
|
||
|
stdout_events_enabled=true
|
||
|
stderr_events_enabled=true
|
||
|
stopsignal=QUIT
|