chore(docker): 更新supervisord.conf 针对Docker容器重启后,设置权限
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user