filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app or as a middleware.
amd64), Rock64 🍍 (arm64) and Raspberry Pi 🍓 (arm32)bashdocker run -d --name filebrowser -p 80:8080 hurlenko/filebrowser
To run as current user and to map custom volume locations use:
bashdocker run -d \ --name filebrowser \ --user $(id -u):$(id -g) \ -p 8080:8080 \ -v /DATA_DIR:/data \ -v /CONFIG_DIR:/config \ -e FB_BASEURL=/filebrowser \ hurlenko/filebrowser
Minimal docker-compose.yml may look like this:
yamlversion: "3" services: filebrowser: image: hurlenko/filebrowser user: "${UID}:${GID}" ports: - 443:8080 volumes: - /DATA_DIR:/data - /CONFIG_DIR:/config environment: - FB_BASEURL=/filebrowser restart: always
Simply run:
bashdocker-compose up
You can use this nginx config:
nginxlocation /filebrowser { # prevents 502 bad gateway error proxy_buffers 8 32k; proxy_buffer_size 64k; client_max_body_size 75M; # redirect all HTTP traffic to localhost:8088; proxy_pass http://localhost:8080; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; #proxy_set_header X-NginX-Proxy true; # enables WS support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_read_timeout 999999999; }
8080 - default filebrowser portThe environment variables are prefixed by FB_ followed by the option name in caps. So to set "database" via an env variable, you should set FB_DATABASE. The list of avalable options can be found here.
/data - Data directory to browse/config - filebrowser.db locationIf you want to attach multiple directories you need to mount them as subdirectories of the data directory inside of the container (/data by default):
bashdocker run \ -v /path/to/music:/data/music \ -v /path/to/movies:/data/movies \ -v /path/to/photos:/data/photos \ hurlenko/filebrowser
bashgit clone https://github.com/hurlenko/filebrowser-docker cd filebrowser-docker docker build -t hurlenko/filebrowser .
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 hurlenko/filebrowser 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: