File Browser — a clean web file manager for a directory: browse, upload, download, edit, share, and manage files and users from the browser. Deployed as a single host-networked Nomad service with a files volume and a database volume.
Save as values.hcl, edit, then run:
# The name of the Nomad job.
job_name = "filebrowser"
# The Nomad namespace to deploy into.
namespace = "default"
# The datacenters to deploy to.
datacenters = ["*"]
# The File Browser container image. Pin a tag in production.
image = "filebrowser/filebrowser:latest"
# Host port for the File Browser web UI (FB_PORT).
port = 8103
# Named volume for the files being managed, mounted at /srv.
files_volume = "filebrowser_files"
# Named volume for the File Browser database (/database/filebrowser.db lives here).
data_volume = "filebrowser_data"
# Placement constraints. Pin to the node holding the volumes. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []
# The task resources.
resources = {
cpu = 300
memory = 128
}
| Name | Type | Default | Description |
|---|---|---|---|
| job_name | string | "filebrowser" | The name of the Nomad job. |
| namespace | string | "default" | The Nomad namespace to deploy into. |
| datacenters | list | ["*"] | The datacenters to deploy to. |
| image | string | "filebrowser/filebrowser:latest" | The File Browser container image. Pin a tag in production. |
| port | number | 8103 | Host port for the File Browser web UI (FB_PORT). |
| files_volume | string | "filebrowser_files" | Named volume for the files being managed, mounted at /srv. |
| data_volume | string | "filebrowser_data" | Named volume for the File Browser database (/database/filebrowser.db lives here). |
| constraints | list | [] | Placement constraints. Pin to the node holding the volumes. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true". |
| resources | object | {
cpu = 300
memory = 128
} | The task resources. |
No variables match.
File Browser — a clean web file manager for a directory: browse, upload, download, edit, preview, share, and manage files and users from the browser.
Single host-networked Nomad service with a files volume (/srv) and a database volume.
nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run filebrowser --registry=nomploy
| Variable | Default | Description |
|---|---|---|
port |
8103 |
Web UI port (FB_PORT). |
files_volume |
filebrowser_files |
/srv — the files you manage. |
data_volume |
filebrowser_data |
/database — the File Browser database. |
image |
filebrowser/filebrowser:latest |
Container image. Pin a tag in production. |
resources |
{ cpu = 300, memory = 128 } |
Task resources. |
First start creates the database and an admin account — check the task logs for the generated
admin password (older images use admin / admin) and change it immediately. Pin the job to
the node holding the volumes with constraints.