官網文檔: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