---
title: "Deploy Dograh"
description: "Open-source voice AI agents: a self-hosted Vapi and Retell alternative"
category: "AI/ML"
url: https://railway.com/deploy/dograh-1
---

# Deploy Dograh

Open-source voice AI agents: a self-hosted Vapi and Retell alternative

**[Deploy Dograh on Railway](https://railway.com/template/dograh-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/dograh-1/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** AI/ML

## Template content

### dograh https://raw.githubusercontent.com/dograh-hq/dograh/dograh-v1.51.0/ui/public/dograh-mark.png

- **Source:** https://github.com/aalfath/dograh-railway-template
- **Health check:** /healthz
- **Public domain:** Yes

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### minio https://raw.githubusercontent.com/dograh-hq/dograh/dograh-v1.51.0/ui/public/dograh-mark.png

- **Source:** https://github.com/aalfath/dograh-railway-template
- **Health check:** /minio/health/live

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### dograh-api https://raw.githubusercontent.com/dograh-hq/dograh/dograh-v1.51.0/ui/public/dograh-mark.png

- **Source:** https://github.com/aalfath/dograh-railway-template
- **Health check:** /api/v1/health

### dograh-ui https://raw.githubusercontent.com/dograh-hq/dograh/dograh-v1.51.0/ui/public/dograh-mark.png

- **Source:** https://github.com/aalfath/dograh-railway-template
- **Health check:** /auth/login

## Documentation

# Deploy and Host Dograh on Railway

Dograh is an open-source voice AI platform and a self-hosted alternative to Vapi and Retell. You build voice agents in a visual workflow editor, bring your own LLM, speech-to-text and text-to-speech keys (or a speech-to-speech model), and run them as browser calls or over phone lines through providers such as Twilio, Vonage or Telnyx.

## About Hosting Dograh

Dograh runs as a FastAPI backend with a background worker, a Next.js web app, Postgres with pgvector, Redis, and S3-compatible storage for recordings, transcripts and knowledge-base files. This template deploys Dograh 1.51.0 from the official images, pinned by digest, with Railway Postgres and Redis and a private MinIO on a volume. One nginx gateway serves the UI, the API (including WebSockets) and presigned storage links on a single HTTPS domain. Secrets are generated at deploy time, database migrations run when the API starts, and the deploy asks no questions. The first account you create is the admin account.

## Common Use Cases

* Inbound phone agents for support, booking or FAQ lines, answering from your own knowledge-base documents
* Outbound call campaigns for reminders, lead qualification or surveys, with recordings and transcripts
* Testing voice agent flows in the browser before you connect a phone number

## Dependencies for Dograh Hosting

* Postgres (Railway Postgres, with pgvector for knowledge-base search) and Redis
* An API key for at least one LLM, STT and TTS provider (or a speech-to-speech model), added in the Dograh UI after deploy

### Deployment Dependencies

* Dograh source and docs: https://github.com/dograh-hq/dograh
* Template repo (Dockerfiles, changelog): https://github.com/aalfath/dograh-railway-template
* Optional telephony account (Twilio, Vonage, Plivo, Telnyx and others) for phone calls

### Implementation Details

* Services: `dograh` (public nginx gateway), `dograh-api`, `dograh-ui`, `minio` (volume at `/data`), Postgres and Redis. Only the gateway is public.
* After creating your account, set `ENABLE_SIGNUP=false` on `dograh-api` so nobody else can sign up.
* Railway has no public UDP, so the bundled TURN server (coturn) is not deployed. Browser calls use public STUN. To use your own TURN server, set `ENABLE_COTURN=true`, `TURN_HOST` and `TURN_SECRET` on `dograh-api`.
* With a custom domain, update `PUBLIC_BASE_URL`, `UI_APP_URL`, `S3_ENDPOINT_URL` and `PUBLIC_HOST` on `dograh-api`.
* All app services build from the template repo, so new Dograh versions reach you as Railway "update available" notices. Read the changelog before you apply one.

## Why Deploy Dograh 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 Dograh 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.



## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/dograh-1
