Docker Compose部署filebrowser
Quote
在linuxserver服务器上安装
环境:docker、docker- compose
需要了解docker基本知识,不懂可以翻翻以前的博客或者搜下教程学习
filebrowser官网上给的是docker
命令执行的,但用compose
习惯了,所以转换了一下格式,但是这里有个坑,官网也提示了
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 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.
Tip
翻译过来就是需要提前创建所需的文件和文件夹,否则,Docker会创建一个空的文件夹而不是空的文件,导致在将数据库挂载到容器中时出现错误!这点一定要注意啊!!!