NocoBase — an open-source no-code/low-code platform for building internal tools, business apps and admin panels on top of your own database, with a plugin architecture and fine-grained permissions. Deployed as an all-in-one host-networked Nomad job (PostgreSQL + app).
Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.
Source ↗ Project ↗ ★ 24.4k ⚑ Report an issue
Save as values.hcl, edit, then run:
# The name of the Nomad job.
job_name = "nocobase"
# The Nomad namespace to deploy into.
namespace = "default"
# The datacenters to deploy to.
datacenters = ["*"]
# The NocoBase container image. Pin a tag in production.
image = "nocobase/nocobase:latest"
# The PostgreSQL image for the bundled database.
postgres_image = "postgres:16-alpine"
# Host port for the NocoBase web UI.
port = 13000
# Host port for the bundled PostgreSQL.
db_port = 5432
# Password for the bundled PostgreSQL. CHANGE THIS.
db_password = "nocobase_change_me"
# Secret used to sign tokens / encrypt data. CHANGE THIS and keep it stable.
app_key = "change_me_to_a_long_random_app_key_0000"
# Named volume for PostgreSQL data.
db_data_volume = "nocobase_db_data"
# Named volume for NocoBase uploads and storage (/app/nocobase/storage).
storage_volume = "nocobase_storage"
# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []
# Resources for the NocoBase app task.
resources = {
cpu = 1000
memory = 1024
}
# Resources for the bundled PostgreSQL task.
db_resources = {
cpu = 500
memory = 512
}
| Name | Type | Default | Description |
|---|---|---|---|
| job_name | string | "nocobase" | The name of the Nomad job. |
| namespace | string | "default" | The Nomad namespace to deploy into. |
| datacenters | list | ["*"] | The datacenters to deploy to. |
| image | string | "nocobase/nocobase:latest" | The NocoBase container image. Pin a tag in production. |
| postgres_image | string | "postgres:16-alpine" | The PostgreSQL image for the bundled database. |
| port | number | 13000 | Host port for the NocoBase web UI. |
| db_port | number | 5432 | Host port for the bundled PostgreSQL. |
| db_password set me | string | "nocobase_change_me" | Password for the bundled PostgreSQL. CHANGE THIS. |
| app_key set me | string | "change_me_to_a_long_random_app_key_0000" | Secret used to sign tokens / encrypt data. CHANGE THIS and keep it stable. |
| db_data_volume | string | "nocobase_db_data" | Named volume for PostgreSQL data. |
| storage_volume | string | "nocobase_storage" | Named volume for NocoBase uploads and storage (/app/nocobase/storage). |
| constraints | list | [] | Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true". |
| resources | object | {
cpu = 1000
memory = 1024
} | Resources for the NocoBase app task. |
| db_resources | object | {
cpu = 500
memory = 512
} | Resources for the bundled PostgreSQL task. |
No variables match.
This pack stores data in 2 Docker named volumes:
nocobase_db_datanocobase_storage
⚠ This pack bundles a database. A cold copy of the volume can be inconsistent — for a reliable backup, dump the DB (pg_dump / mysqldump) or stop the job while backing up.
restic
# Run on the node hosting this pack. Point restic at your repo first: # export RESTIC_REPOSITORY="s3:https://<account>.r2.cloudflarestorage.com/<bucket>" # export RESTIC_PASSWORD="<repo-password>" # export AWS_ACCESS_KEY_ID=<key> AWS_SECRET_ACCESS_KEY=<secret> restic backup \ /var/lib/docker/volumes/nocobase_db_data/_data \ /var/lib/docker/volumes/nocobase_storage/_data
rclone (sync to S3/R2)
rclone sync /var/lib/docker/volumes/nocobase_db_data/_data backup:<bucket>/nocobase_db_data rclone sync /var/lib/docker/volumes/nocobase_storage/_data backup:<bucket>/nocobase_storage
Paths assume the default Docker volume location (/var/lib/docker/volumes). Restore by stopping the job, restoring files into the same volume, and re-running the pack.
NocoBase is an open-source no-code/low-code platform for building internal tools, business applications and admin panels. Unlike spreadsheet-style tools, it's data-model-driven and plugin-based: define collections, then compose blocks (tables, forms, kanban, calendars, charts) with fine-grained roles and permissions, on top of your own PostgreSQL.
This pack deploys NocoBase all-in-one as a single host-networked Nomad job: PostgreSQL (bundled as a prestart sidecar) plus the NocoBase app. Built-in plugins are installed automatically on first start.
nomad-pack run nocobase --registry=nomploy \
--var db_password=$(openssl rand -hex 16) \
--var app_key=$(openssl rand -hex 32)
Open http://<node-ip>:13000 (first boot takes a minute to install plugins) and
sign in with admin@nocobase.com / admin, then change the password.
| Variable | Default | Description |
|---|---|---|
image |
nocobase/nocobase:latest |
App image (pin a tag in production). |
postgres_image |
postgres:16-alpine |
Bundled PostgreSQL image. |
port |
13000 |
Host port for the web UI. |
db_password |
nocobase_change_me |
PostgreSQL password — change this. |
app_key |
placeholder | Token/crypto secret — change & keep stable. |
storage_volume |
nocobase_storage |
Volume for uploads (/app/nocobase/storage). |
resources |
1000 MHz / 1024 MB | App task resources. |
PostgreSQL data persists in db_data_volume; uploaded files in storage_volume.