Dagu — a local-first workflow engine and modern cron replacement: define DAGs in YAML and run shell/Docker/SSH jobs with a built-in web UI, no external database or broker. Deployed as a single host-networked Nomad service.
Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.
Source ↗ Project ↗ ★ 4.2k ⚑ Report an issue
Save as values.hcl, edit, then run:
# The name of the Nomad job.
job_name = "dagu"
# The Nomad namespace to deploy into.
namespace = "default"
# The datacenters to deploy to.
datacenters = ["*"]
# The Dagu container image. Pin a tag in production.
image = "ghcr.io/dagucloud/dagu:latest"
# Host port for the Dagu web UI.
port = 8080
# Named volume for DAG definitions, logs and state (/var/lib/dagu).
data_volume = "dagu_data"
# Host path to the Docker socket, bind-mounted so DAGs can run Docker containers. Set to empty to disable.
docker_sock = "/var/run/docker.sock"
# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []
# The task resources.
resources = {
cpu = 300
memory = 256
}
| Name | Type | Default | Description |
|---|---|---|---|
| job_name | string | "dagu" | 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/dagucloud/dagu:latest" | The Dagu container image. Pin a tag in production. |
| port | number | 8080 | Host port for the Dagu web UI. |
| data_volume | string | "dagu_data" | Named volume for DAG definitions, logs and state (/var/lib/dagu). |
| docker_sock | string | "/var/run/docker.sock" | Host path to the Docker socket, bind-mounted so DAGs can run Docker containers. Set to empty to disable. |
| constraints | list | [] | Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true". |
| resources | object | {
cpu = 300
memory = 256
} | The task resources. |
No variables match.
This pack stores data in one Docker named volume:
dagu_data
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/dagu_data/_data
rclone (sync to S3/R2)
rclone sync /var/lib/docker/volumes/dagu_data/_data backup:<bucket>/dagu_data
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.
Dagu is a local-first workflow engine and a modern replacement for cron. You define workflows as DAGs in declarative YAML and Dagu runs them — shell commands, Docker containers, Kubernetes Jobs, remote commands over SSH and more — with a built-in web UI, scheduling, retries, logging and notifications. It's a single self-contained binary: no external database or message broker required.
This pack runs Dagu as a single host-networked Nomad service.
nomad-pack run dagu --registry=nomploy
Open http://<node-ip>:8080 and create your first DAG.
| Variable | Default | Description |
|---|---|---|
image |
ghcr.io/dagucloud/dagu:latest |
Container image (pin a tag in production). |
port |
8080 |
Host port for the web UI. |
data_volume |
dagu_data |
Volume for DAGs, logs and state (/var/lib/dagu). |
docker_sock |
/var/run/docker.sock |
Docker socket for container steps; "" to disable. |
resources |
300 MHz / 256 MB | CPU and memory for the task. |
Note: The Docker socket lets DAG steps start containers directly on the host — grant it only on nodes you trust, or set
docker_sock="".
DAG definitions, run history and logs persist in data_volume.