chore: 优化docker环境下的启动速度,增加webman进程自动重启来释放内存

This commit is contained in:
xboard
2024-05-14 18:10:15 +08:00
parent fa6dfc6acb
commit 227f50b9d1
3 changed files with 28 additions and 6 deletions
+18 -2
View File
@@ -5,6 +5,23 @@ logfile=/dev/null
logfile_maxbytes=0
pidfile=/tmp/supervisord.pid
[unix_http_server]
file=/run/supervisord.sock
chmod=0700
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[program:chown]
directory=/www
command=sh -c "chown -R www:www /www && chmod -R 775 /www"
autostart=true
autorestart=false
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:nginx]
command=nginx -g 'daemon off;'
user=root
@@ -51,7 +68,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
autostart=true
autorestart=true
startretries=3
startretries=10
[program:xboard-queue]
command=php artisan horizon
@@ -64,4 +81,3 @@ stderr_logfile_maxbytes=0
autostart=true
autorestart=true
startretries=10
numprocs=1