Deploy Dagu Official

Official Dagu template: local-first workflow orchestrator with a web UI

Deploy Dagu Official

Just deployed

/var/lib/dagu

Deploy and Host Dagu on Railway

Dagu is a local-first workflow orchestrator. Workflows are YAML DAGs, and one binary runs the web UI, API, scheduler, and executors. Runtime state is stored in files, so no database or message broker is required. This is the official template maintained by the Dagu project.

About Hosting Dagu

This template runs the official ghcr.io/dagucloud/dagu image, which starts the web UI, API, and scheduler in one service. A Railway volume mounted at /var/lib/dagu keeps DAG definitions, run history, and logs across redeploys. Built-in authentication is enabled, and the first admin account is created from a generated password stored in the service variables. Keep the service at one replica, because the volume and the scheduler belong to a single instance. Railway mounts volumes as root, so the template runs Dagu as root to write to it.

Common Use Cases

  • Scheduled data pipelines and ETL jobs defined as YAML DAGs
  • Operational automation such as backups, reports, cleanup scripts, and health checks
  • Multi-step jobs with dependencies, retries, approvals, and notifications

Dependencies for Dagu Hosting

  • The official Docker image ghcr.io/dagucloud/dagu:latest
  • A Railway volume mounted at /var/lib/dagu

Implementation Details

After the deploy finishes, open the generated domain and sign in as admin. The password is the value of DAGU_AUTH_BUILTIN_INITIAL_ADMIN_PASSWORD in the service variables. It is used only when no users exist, so change the password in the Dagu UI afterwards. For production, pin a versioned image tag instead of latest.

Why Deploy Dagu on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Dagu on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
120
View Template
Evolution API with n8n
Automate WhatsApp workflows with Evolution API, n8n, and Postgres.

codestorm
106
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates
868