docker 中以非 root 用户身份运行 Seafile

从Seafile 13.0开始支持此功能。 您可以在 docker 中以非 root 用户身份运行 Seafile。
首先使用 docker 部署 Seafile,停止容器运行。
            
                
                
docker compose down
然后将   NON_ROOT=true   添加到   .env
            
                
                
NON_ROOT=true
然后修改   /opt/seafile-data/seafile/   权限。
            
                
                
chmod -R a+rwx /opt/seafile-data/seafile/
启动容器
            
                
                
docker compose up -d
现在您可以以   seafile   用户身份运行 Seafile。
注意: 在进行维护时,docker 中的其他脚本也需要以  seafile   用户身份运行,例如   su seafile -c ./seaf-gc.sh