Skip to content

About

Hardened, production-safe Docker Compose deployment for File Browser, featuring user-configurable image versioning, persistent directory mounts, non-root execution, loopback-first networking, built-in healthchecks, and log rotation.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Docker-Filebrowser · Hardened File Browser Deployment

Ready-to-Deploy Containerized Web File Manager (v1.0.0)

Umbrella Organization Architect & Designer Implementation Image Security License

«Simple deployment by design, without operational fragility»

📖 Step-by-Step Operations Manual (ES) · 🔒 Security Policy


1. Overview

docker-filebrowser provides a clean, parameterized, and production-safe Docker Compose deployment for File Browser, designed for rapid provisioning without fragile defaults. It runs on whichever version you choose via FB_IMAGE_TAG (defaulting to v2.63.23).

Key Design Safeguards

  • Configurable Pinned Image Version (Zero :latest): Defaults to FB_IMAGE_TAG=v2.63.23, and you can set any filebrowser/filebrowser tag you want in .env without editing docker-compose.yml, preventing unexpected breaking changes on container recreation.
  • No Environment Variable Collisions: Compose does not pass .env blindly via env_file. Host port mapping (FB_PORT) is isolated from File Browser's internal port (80), preventing port mismatch lockouts.
  • Directory-Mounted Database (./database:/database): Mounts a host directory instead of a single .db file so Docker never creates an empty directory named filebrowser.db/ on first boot.
  • Safe Bind Default (127.0.0.1): Publishes to loopback (FB_BIND_IP=127.0.0.1) by default so the service is not exposed publicly unless explicitly configured or fronted by a reverse proxy.
  • Built-In Healthcheck & Log Rotation: Uses the image's native /healthcheck.sh and json-file log rotation (10m × 3 files) with restart: unless-stopped.

2. Quick Start

# 1. Create environment file from template
cp .env.example .env

# 2. Create host directories with matching ownership
mkdir -p files database

# 3. Start the service (defaults to 127.0.0.1:8080 when FB_PORT is empty)
docker compose up -d

# 4. Verify container health
docker compose ps

Warning

Security & Upstream Support Notice (FB_NOAUTH, FB_BIND_IP & End-of-Life):

  • Upstream Status: Official filebrowser/filebrowser (v2.63.23) was archived on 2026-09-01 and no longer receives maintenance or security patches.
  • Recommended Usage: Use this deployment strictly on internal/private networks, behind a VPN/tunnel, or fronted by an authenticated reverse proxy with FB_BIND_IP=127.0.0.1. Never expose it directly to the public internet (0.0.0.0), and never combine FB_NOAUTH=true with FB_BIND_IP=0.0.0.0.
  • Disclaimer of Liability: Provided "AS IS" under Apache-2.0. Isora Cloud Group and the project maintainers assume no responsibility or liability for security vulnerabilities, incidents, or damages arising from the use of upstream File Browser.

3. Environment Contract (.env.example)

All configuration is centralized in .env.example with safe defaults:

Variable Default (.env.example) Description
FB_IMAGE_TAG v2.63.23 filebrowser/filebrowser Docker image tag (defaults to v2.63.23; set any version you want)
CONTAINER_NAME filebrowser Docker container name
RESTART_POLICY unless-stopped Container restart policy
TZ UTC Container timezone for logs and file timestamps
FB_BIND_IP 127.0.0.1 Host interface to bind (127.0.0.1 for reverse proxy, 0.0.0.0 for LAN/direct)
FB_PORT (empty → 8080) Host port mapped to container port 80
FB_FILES_DIR ./files Host directory mounted to /srv
FB_DB_DIR ./database Host directory mounted to /database (stores filebrowser.db)
PUID / PGID 1000 / 1000 Host UID/GID used to run the container process
FB_BASE_URL (empty) Optional subpath prefix behind a reverse proxy (e.g. /files, mapped to FB_BASEURL)
FB_NOAUTH false Disables authentication when set to true
LOG_MAX_SIZE 10m Maximum size per Docker JSON log file
LOG_MAX_FILE 3 Maximum rotated log files retained

4. Reverse Proxy & Subpath Topology

flowchart LR
    User["Client Browser"] --> Proxy["Reverse Proxy (Nginx / Caddy / Traefik)"]
    Proxy -->|"http://127.0.0.1:${FB_PORT:-8080}${FB_BASE_URL}"| FB["filebrowser (:80)"]
    FB --> Files[("${FB_FILES_DIR} -> /srv")]
    FB --> DB[("${FB_DB_DIR} -> /database/filebrowser.db")]
Loading

5. Attribution & License

About

Hardened, production-safe Docker Compose deployment for File Browser, featuring user-configurable image versioning, persistent directory mounts, non-root execution, loopback-first networking, built-in healthchecks, and log rotation.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors