fix(docker): 针对已经存在的容器或后期新建的容器权限设置更新
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user