chore(docker): 更新supervisord.conf 针对Docker容器重启后,设置权限

This commit is contained in:
2025-12-05 15:03:38 +08:00
parent 776f0ed029
commit 75ff4bb0a4

View File

@@ -6,6 +6,16 @@ logfile_backups=10
loglevel=info loglevel=info
pidfile=/var/run/supervisord.pid pidfile=/var/run/supervisord.pid
[program:chmod]
command=chown -R www-data:www-data ./runtime/ && chmod -R 755 ./runtime/ && chown -R www-data:www-data ./upload/ && chmod -R 755 ./upload/
directory=/var/www/html
autostart=true
autorestart=false
startretries=3
startsecs=1
stopasgroup=true
killasgroup=true
[program:php-fpm] [program:php-fpm]
command=php-fpm command=php-fpm
autostart=true autostart=true