Nomploy Nomad Packs

← All packs

windmill v0.1.0

Low-code

Windmill — a developer platform to turn scripts (Python, TypeScript, Go, Bash, SQL) into workflows, UIs and cron jobs (an open-source Airplane/Retool/n8n alternative). Batteries-included with a bundled PostgreSQL. Deployed as a single host-networked Nomad service.

nomad-pack run windmill --registry nomploy
…or one line (add registry + run)
curl -fsSL https://packs.nomploy.com/install.sh | sh -s -- windmill

Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.

2 tasks http 8000db 5432 2 volumes image ghcr.io/windmill-labs/windmill:latest tracks :latest image bumped today
Variables 14
values.hcl

Save as values.hcl, edit, then run:

nomad-pack run windmill -f values.hcl --registry nomploy
# The name of the Nomad job.
job_name = "windmill"

# The Nomad namespace to deploy into.
namespace = "default"

# The datacenters to deploy to.
datacenters = ["*"]

# The Windmill container image. Pin a tag in production.
image = "ghcr.io/windmill-labs/windmill:latest"

# Host port for the Windmill web UI.
port = 8000

# The PostgreSQL image for the bundled database.
postgres_image = "postgres:16"

# Host port for the bundled PostgreSQL (loopback only).
db_port = 5432

# Password for the Windmill database user. CHANGE THIS.
db_password = "change-me-windmill-db"

# Public URL Windmill is reached at (BASE_URL). Empty = http://localhost:<port>. Set to your real host/domain.
base_url = ""

# Named volume mounted at /tmp/windmill — the worker dependency cache.
data_volume = "windmill_cache"

# Named volume for the PostgreSQL data directory (holds all Windmill state).
db_data_volume = "windmill_db"

# Resources for the PostgreSQL task.
db_resources = {
    cpu    = 400
    memory = 512
  }

# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []

# Resources for the Windmill task (server + embedded worker).
resources = {
    cpu    = 1000
    memory = 1024
  }
NameTypeDefaultDescription
job_name string
"windmill"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"ghcr.io/windmill-labs/windmill:latest"
The Windmill container image. Pin a tag in production.
port number
8000
Host port for the Windmill web UI.
postgres_image string
"postgres:16"
The PostgreSQL image for the bundled database.
db_port number
5432
Host port for the bundled PostgreSQL (loopback only).
db_password set me string
"change-me-windmill-db"
Password for the Windmill database user. CHANGE THIS.
base_url string
""
Public URL Windmill is reached at (BASE_URL). Empty = http://localhost:<port>. Set to your real host/domain.
data_volume string
"windmill_cache"
Named volume mounted at /tmp/windmill — the worker dependency cache.
db_data_volume string
"windmill_db"
Named volume for the PostgreSQL data directory (holds all Windmill state).
db_resources object
{
    cpu    = 400
    memory = 512
  }
Resources for the PostgreSQL task.
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 Windmill task (server + embedded worker).
Back up this pack

This pack stores data in 2 Docker named volumes: windmill_dbwindmill_cache

⚠ 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/windmill_db/_data \
  /var/lib/docker/volumes/windmill_cache/_data

rclone (sync to S3/R2)

rclone sync /var/lib/docker/volumes/windmill_db/_data backup:<bucket>/windmill_db
rclone sync /var/lib/docker/volumes/windmill_cache/_data backup:<bucket>/windmill_cache

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.

Readme

windmill

Windmill — a developer platform that turns scripts into workflows, UIs and cron jobs. Write Python, TypeScript, Go, Bash or SQL and get auto-generated UIs, a flow builder, schedules, approvals and an app editor — an open-source alternative to Airplane, Retool and n8n. This pack runs Windmill in standalone mode (server + embedded worker) with a bundled PostgreSQL.

Single host-networked group: windmill + postgres.

Deploy

nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run windmill --registry=nomploy

Configure

Variable Default Description
port 8000 Web UI port.
base_url "" Public URL (BASE_URL). Empty = http://localhost:<port>.
db_password change-me-… Change this. Database password.
image ghcr.io/windmill-labs/windmill:latest App image. Pin a tag in production.
postgres_image postgres:16 Bundled database image.
data_volume windmill_cache /tmp/windmill — worker dependency cache.
db_data_volume windmill_db PostgreSQL data — holds all Windmill state.
db_port 5432 Loopback PostgreSQL port.
resources / db_resources … Per-task resources.

Windmill runs its database migrations on start; the first account you create becomes the superadmin. standalone mode bundles the server and one worker in a single container — for heavier workloads, scale out with dedicated worker deployments. Postgres holds the entire state, so pin the job to the node holding the volumes with constraints and back it up.