Published: October 8, 2025
Last updated: October 30, 2026

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):

TagFeaturesArchitectures
latest, stableFFmpeg + document previewarm64, amd64
stable-slimCore service only (no media/office)arm64, arm32, amd64
betaFFmpeg + document previewarm64, amd64
beta-slimCore 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.

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:

BASH
1
2
3
4
5
docker run -d \
  --name filebrowser \
  -v "$(pwd):/folder" \
  -p 8080:80 \
  ghcr.io/gtsteffaniak/filebrowser:stable

Access at http://localhost:8080. Find the one-time admin password:

BASH
1
docker logs -f filebrowser 2>&1 | grep -m1 -i "initial 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

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).

BASH
1
2
mkdir -p filebrowser/data filebrowser/files && cd filebrowser
sudo chown -R 1000:1000 data files

Step 2: Create config.yaml

Create the file before any bind mount that expects a file (see Common setup mistakes):

BASH
1
touch ./data/config.yaml

Example:

YAML
1
2
3
4
5
6
server:
  cacheDir: /home/filebrowser/data/tmp
  sources:
    - path: /folder
      config:
        defaultEnabled: true

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

YAML
1
2
3
4
5
6
7
8
9
services:
  filebrowser:
    image: ghcr.io/gtsteffaniak/filebrowser:stable
    volumes:
      - ./files:/folder
      - ./data:/home/filebrowser/data
    ports:
      - "8080:80"
    restart: unless-stopped

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

BASH
1
docker compose up -d

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:

BASH
1
docker compose logs -f filebrowser 2>&1 | grep -m1 -i "initial admin 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.adminPassword or FILEBROWSER_ADMIN_PASSWORD to any value other than empty or admin, 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 admin does 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):

BASH
1
2
3
4
5
6
7
docker compose down
docker run --rm \
  -v "$(pwd)/data:/home/filebrowser/data" \
  --entrypoint="" \
  ghcr.io/gtsteffaniak/filebrowser:stable \
  ./filebrowser user set admin --password 'your-new-password' -c /home/filebrowser/data/config.yaml
docker compose up -d

See CLI reference for user set options.

Healthcheck Configuration

DOCKERFILE
1
2
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
  CMD curl -f http://localhost:80/health || exit 1

If FileBrowser listens on another port inside the container, override the healthcheck in docker-compose.yaml:

YAML
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
services:
  filebrowser:
    image: ghcr.io/gtsteffaniak/filebrowser:stable
    volumes:
      - ./files:/folder
      - ./data:/home/filebrowser/data
    ports:
      - "8080:8080"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
      interval: 30s
      timeout: 3s
      start_period: 10s
      retries: 3
    restart: unless-stopped

Example config.yaml fragment:

YAML
1
2
http:
  port: 8080

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

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:

YAML
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
services:
  filebrowser:
    image: ghcr.io/gtsteffaniak/filebrowser:stable
    user: "1001:1001"
    volumes:
      - ./files:/folder
      - ./data:/home/filebrowser/data
    ports:
      - "8080:80"
    restart: unless-stopped

If you choose a UID other than 1000, the mounted data directory and source folder need matching ownership (See cacheDir config):

BASH
1
chown -R 1001:1001 ./data ./files

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:

YAML
1
2
3
4
services:
  filebrowser:
    cap_add:
      - NET_BIND_SERVICE

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.

Next Steps