官網文檔: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
-
Password:
admin
DockerFile Browser is also available as a Docker image. You can find it on Docker Hub. The usage is as follows:
/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.
File Browser就是一個文件瀏覽器,因為linux並不方便桌面管理,所以Filebrowser就是幫助我們管理linux服務器上文件的程序,你可以稱他為網盤程序,可以管理文件、可以分享文件,另外它還可以在線播放.mp4視頻。
下載filebrowser鏡像
docker pull filebrowser/filebrowser |
創建filebrowser掛載所需要的目錄
mkdir filebrowser |
啟動filebrowser
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/filebrowser |
通過瀏覽器訪問,默認賬號密碼:admin