---
title: "Deploy dagu"
description: "Deploy and Host dagu with Railway"
category: "Automation"
url: https://railway.com/deploy/dagu
---

# Deploy dagu

Deploy and Host dagu with Railway

**[Deploy dagu on Railway](https://railway.com/template/dagu)**

- **Creator:** koukyo_huang's Projects
- **Category:** Automation
- **Total deploys:** 2

## Template content

### dagu

- **Image:** ghcr.io/dagu-org/dagu:latest
- **Start command:** `dagu start-all`
- **Public domain:** Yes

## Documentation

# Deploy and Host Dagu on Railway

## About Hosting

Dagu is a self-contained workflow engine written in Go with an embedded TypeScript/React Web UI. It uses file-based storage (no external database required) and runs as a single binary via `dagu start-all`, which launches the web server, scheduler, and coordinator together. The Docker image is `ghcr.io/dagu-org/dagu:latest` from GHCR.

## Why Deploy

- **Zero-Ops**: Single binary, under 128MB memory footprint, no PostgreSQL/Redis/message broker needed
- **Full-Power Orchestration**: 19+ built-in executors including Docker, SSH, HTTP, SQL, S3, and more
- **AI-Native**: Built-in LLM agent for creating, editing, and debugging workflows from natural language
- **Web UI**: Rich dashboard with DAG visualization, log viewer, and workflow management
- **Air-Gapped Ready**: Runs in isolated environments without external dependencies
- **Persistent Storage**: Railway volume ensures DAG definitions and run history survive redeployments

## Common Use Cases

- Scheduling and orchestrating ETL/data pipelines with YAML-defined DAGs
- Automating DevOps tasks like deployments, backups, and monitoring checks
- Running periodic batch jobs (report generation, data sync, cleanup scripts)
- Orchestrating multi-step CI/CD workflows with conditional logic and retries
- Managing distributed task execution across multiple workers

## Dependencies for Deployment

### Deployment Dependencies

| Item | Value |
|------|-------|
| Docker Image | `ghcr.io/dagu-org/dagu:latest` |
| Container Port | `8080` |
| Start Command | `dagu start-all` |
| Volume Mount | `/data/dagu` (DAGs, data, logs) |
| `PORT` | `8080` |
| `DAGU_HOST` | `0.0.0.0` |
| `DAGU_PORT` | `8080` |
| `DAGU_HOME` | `/data/dagu` |
| `DAGU_AUTH_MODE` | `basic` |
| `DAGU_AUTH_BASIC_USERNAME` | Required - admin username |
| `DAGU_AUTH_BASIC_PASSWORD` | Required - admin password |


## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/dagu
