Railway
Deploy with the template
The official template creates the service, Volume, public domain, and the variables listed under Deploy manually. It generates the initial admin password, which the service's Variables tab shows as DAGU_AUTH_BUILTIN_INITIAL_ADMIN_PASSWORD.
Deploy manually
- Select New Project > Empty project.
- Select Add a Service > Docker Image.
- Enter
ghcr.io/dagucloud/dagu:latest. - Add a Volume mounted at
/var/lib/dagu. - Add these variables:
DAGU_AUTH_MODE=builtin
DAGU_AUTH_BUILTIN_INITIAL_ADMIN_USERNAME=admin
DAGU_AUTH_BUILTIN_INITIAL_ADMIN_PASSWORD=<strong-password>
PUID=0
PGID=0
RAILWAY_RUN_UID=0- Keep Serverless disabled and replicas at
1. - Under Networking, generate a public domain for port
8080. - Add
DAGU_PUBLIC_URL=https://$and deploy the staged changes.
Sign in
Open the generated HTTPS URL and sign in as admin. Remove the two DAGU_AUTH_BUILTIN_INITIAL_ADMIN_* variables, then deploy the staged change.
Railway mounts Volumes as root, so both setups run Dagu and its workflows as root. A non-root setup needs a custom startup init that changes /var/lib/dagu ownership before Dagu drops to UID 1000.
A service can have one Volume and cannot use replicas while it is attached. Deployments can have brief downtime. Configure Volume backups. Use a versioned Dagu image for production.
See Railway's quick start, Volume, and public networking documentation.

