Docker (v2.0.0)
This guide is for v2.0.x (stable). It uses the stable or 2.0-stable Docker image and a SQLite database. The image default file is database.sqlite (see Database Location). For v2.1.x previews, use the beta or 2.1-beta tag instead — see release channels.
Upgrading from v1.x?
v2.0.x uses a new database format and requires a one-time migration. Use a directory mount (./data:/home/filebrowser/data) rather than a single database file mount. On the first v2 start, set server.database.migrateFrom (or migrateFrom: "default" when migrating from legacy FILEBROWSER_DATABASE) so the old BoltDB is imported — FILEBROWSER_DATABASE_PATH alone only selects the SQLite file and does not migrate v1 data. See the v2 migration guide before changing your image tag to stable or 2.0-stable.
The fastest way to get started with FileBrowser Quantum v2.0.x (stable).
Available Images
Images from Docker Hub (gtstef/filebrowser) and GitHub Container Registry (ghcr.io/gtsteffaniak/filebrowser):
| Tag | Features | Architectures |
|---|---|---|
latest, stable | FFmpeg + document preview | arm64, amd64 |
stable-slim | Core service only (no media/office) | arm64, arm32, amd64 |
beta | FFmpeg + document preview | arm64, amd64 |
beta-slim | Core service only (no media/office) | arm64, arm32, amd64 |
Slim images are much smaller because they omit FFmpeg and bundled document preview. Learn more about versions and tags here.
To pin a specific v2.0.x release instead of tracking the latest stable, use a version tag such as 2.0-stable or 2.0.2-stable. For v2.1.x previews, use 2.1-beta or a full beta tag from GitHub releases.
Quick Try
Try FileBrowser with no persistent database or config (the SQLite DB and settings are lost when the container is removed). This example mounts the current directory read-write as the file source at /folder:
Access at http://localhost:8080. Find the one-time admin password:
| |
If nothing prints yet, wait for startup and run docker logs filebrowser 2>&1 | grep -i "initial admin password" again.
Then complete First login below. For a persistent setup, use Docker Compose.
Basic Setup with Docker Compose
This set up is just to get the feel of FileBrowser before you get into customization, defining access control, etc. For regular use, Check out the slightly upgraded guide here.
Step 1: Create folders and permissions
Replace /path/to/your/folder with a real directory on your host (if you leave the placeholder, Docker creates an empty root-owned directory and uploads will fail).
Default config location: In Docker, config lives at /home/filebrowser/data/config.yaml inside the container. Mount ./data:/home/filebrowser/data so config, database, and cache persist. You can also set paths with environment variables.
Step 2: Create config.yaml
Create the file before any bind mount that expects a file (see Common setup mistakes):
| |
Example:
path is the in-container path (/folder), not the host path. It must match the right side of your volume mount (./files:/folder → path: /folder).
Step 3: Create Docker Compose
Use 127.0.0.1:8080:80 instead of 8080:80 if only a local reverse proxy should reach the container. Change the left port if host port 80 (or 8080) is already in use.
Step 4: Start
| |
Step 5: First login
When auth.adminPassword and FILEBROWSER_ADMIN_PASSWORD are unset, FileBrowser generates a random password, logs it once, and requires a password change on first login.
Find the password:
| |
If the line is not in the log yet, wait a few seconds and run docker compose logs filebrowser 2>&1 | grep -i "initial admin password" again.
Open http://localhost:8080 (or your mapped host port), sign in, and set a new password when prompted.
Config or env admin password
- If you set
auth.adminPasswordorFILEBROWSER_ADMIN_PASSWORDto any value other than empty oradmin, that password is reapplied on every startup (log:Resetting admin user to default username and password.). Remove it after setup if you want password changes made in the UI to persist across restarts. - Setting the password to
admindoes not work: it is treated as unset, a random password is generated and logged, and first-login reset is still required.
Recovery (lost password; stop the server first — only one process may use the database):
See CLI reference for user set options.
Healthcheck Configuration
This is only needed if you change http.port in config.yaml. The default image healthcheck curls http://localhost:80/health.
If FileBrowser listens on another port inside the container, override the healthcheck in docker-compose.yaml:
| |
Example config.yaml fragment:
Healthcheck options:
test- Command to run (must match your configured port)interval- Time between health checks (default: 30s)timeout- Time to wait for response (default: 3s)start_period- Grace period on startup (default: 10s)retries- Number of failures before marking unhealthy (default: 3)
Database Location
v2.0.0 change
v2.0.0 uses SQLite, not the legacy database (database.db). Upgrading from v1.x? See v2 migration guide.
Default database location (v2.0.0+): The Docker image sets FILEBROWSER_DATABASE_PATH=/home/filebrowser/data/database.sqlite. With the recommended ./data mount, that file is ./data/database.sqlite on the host when server.database.path is omitted. A path set in config wins over that environment variable. Standalone builds with no env var and no config path use ./filebrowser.sqlite.
To persist your database, mount a volume to /home/filebrowser/data:
See Server configuration and configuration file priority for more information on database paths.
Running container with a different user
Docker images run as the built-in filebrowser user (UID:GID 1000:1000) by default. To use a different UID:GID, set user in your compose file:
If you choose a UID other than 1000, the mounted data directory and source folder need matching ownership (See cacheDir config):
| |
Privileged ports and container capabilities
In-container listen (Linux containers)
Linux treats ports below 1024 as privileged: a non-root user needs the NET_BIND_SERVICE capability (or a lowered net.ipv4.ip_unprivileged_port_start) to bind there.
On rootful Docker Engine or Docker Desktop, the container still usually gets NET_BIND_SERVICE in the default capability set, so that user can listen on 80 or 443 without extra flags. bind: permission denied on a low http.port shows up more often when:
- you use a rootless container engine (Docker rootless, Podman rootless), or
- the runtime uses a stricter capability profile (some Podman installs, explicit
--cap-drop, hardened policies).
non-root runtimes can use NET_BIND_SERVICE
Allow binding to ports below 1024 inside the container:
For docker run, use --cap-add=NET_BIND_SERVICE. Podman supports the same flag (or the equivalent in your compose file). Prefer this over --privileged unless you need broader host access.
Further reading: Docker: Runtime privilege and Linux capabilities.
Troubleshooting
See Common setup mistakes for startup failures, empty UI, permission errors, and healthcheck issues.