fix(docker): 针对已经存在的容器或后期新建的容器权限设置更新

This commit is contained in:
2025-12-05 17:01:50 +08:00
parent 6b41e46f30
commit 8f783fd765
2 changed files with 55 additions and 15 deletions

View File

@@ -7,17 +7,17 @@ loglevel=info
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/
command=/bin/bash -c "while true; do chmod -R 775 ./runtime/ ./uploads/ 2>/dev/null || true; sleep 30; done"
directory=/var/www/html
autostart=true
autorestart=false
startretries=3
startsecs=1
autorestart=true
stopasgroup=true
killasgroup=true
[program:php-fpm]
command=php-fpm
user=www-data
umask=0002
autostart=true
autorestart=true
startretries=3