diff --git a/.docker/conf/supervisord.conf b/.docker/conf/supervisord.conf new file mode 100644 index 0000000..721173a --- /dev/null +++ b/.docker/conf/supervisord.conf @@ -0,0 +1,49 @@ +[supervisord] +user=root +nodaemon=true +logfile=/dev/stdout +logfile_maxbytes=0 +pidfile=/var/run/supervisord.pid +loglevel=INFO + +[program:php-fpm] +command=/usr/sbin/php-fpm82 --nodaemonize +autostart=true +autorestart=true +priority=5 +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 + +[program:nginx] +command=/usr/sbin/nginx -g "daemon off;" +autostart=true +autorestart=true +priority=10 +stdout_events_enabled=true +stderr_events_enabled=true +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 + +[program:horizon] +process_name=%(program_name)s +command=php /var/www/app/artisan horizon +autostart=true +autorestart=true +redirect_stderr=true +stdout_logfile=/var/www/app/storage/logs/horizon.log +stopwaitsecs=3600 + +[program:echo-server] +process_name=%(program_name)s_%(process_num)04d +command=/usr/bin/node /usr/local/bin/laravel-echo-server start --dir=/var/www/app +autostart=true +autorestart=true +stopasgroup=true +killasgroup=true +redirect_stderr=true +stdout_logfile=/var/www/app/storage/logs/echoserver.log +stderr_logfile=/var/www/app/storage/logs/echoserver-error.log