创建配置

touch /volume1/docker/filebrowser/.filebrowser.json
touch /volume1/docker/filebrowser/filebrowser.db

编辑配置

nano /volume1/docker/filebrowser/.filebrowser.json

填入

{
  "port": 80,
  "baseURL": "",
  "address": "",
  "log": "stdout",
  "database": "/database/filebrowser.db",
  "root": "/srv",
  "locale": "zh-cn"
}

默认配置参考:https://github.com/filebrowser/filebrowser/blob/master/docker/root/defaults/settings.json

启动容器

docker run \
    -v /volume1:/srv \
    -v /volume1/docker/filebrowser/filebrowser.db:/database.db \
    -v /volume1/docker/filebrowser/.filebrowser.json:/.filebrowser.json \
    -u $(id -u):$(id -g) \
    -p 8980:80 \
    filebrowser/filebrowser

默认账号密码:admin

参考文献

https://filebrowser.org/installation

https://www.iszy.cc/posts/filebrowser2-setup-docker/

https://blog.csdn.net/CAIYUNFREEDOM/article/details/93972504