官网文档:https://filebrowser.xyz/installation
docker run -d -v /opt/airflow/:/srv -v /opt/airflow/filebrowserconfig.json:/etc/config.json -v /opt/airflow/database.db:/etc/database.db -p 9000:80 filebrowser/filebrowser
-
Username:
admin
linux -
Password:
admin
gitDockerFile Browser is also available as a Docker image. You can find it on Docker Hub. The usage is as follows:github
/path/to/root ==> 须要挂载的根目录
docker run \ -v /path/to/root:/srv \ -v /path/filebrowser.db:/database.db \ -v /path/.filebrowser.json:/.filebrowser.json \ -p 80:80 \ filebrowser/filebrowser
By default, we already have a configuration file with some defaults so you can just mount the root and the database. Although you can overwrite by mounting a directory to with a new config file. If you don't already have a database file, make sure to create a new empty file under the path you specified. Otherwise, Docker will create an empty folder instead of an empty file, resulting in an error when mounting the database into the container.docker
File Browser就是一个文件浏览器,由于linux并不方便桌面管理,因此Filebrowser就是帮助咱们管理linux服务器上文件的程序,你能够称他为网盘程序,能够管理文件、能够分享文件,另外它还能够在线播放.mp4视频。json
下载filebrowser镜像浏览器
docker pull filebrowser/filebrowser |
建立filebrowser挂载所须要的目录服务器
mkdir filebrowserapp |
启动filebrowserspa
docker run -d -v /root/filebrowser/sites/root:/srv -v /root/filebrowserconfig.json:/etc/config.json -v /root/filebrowser/database.db:/etc/database.db -p 80:80 filebrowser/filebrowsercode |
经过浏览器访问,默认帐号密码:admin