Deploy Dify (w/ AI model setup)
Dify with your model key set up at deploy: OpenAI, Anthropic or OpenRouter.
Dify (w/ admin setup)
Just deployed
Plugin daemon
Just deployed
/app/storage
Scheduler
Just deployed
Just deployed
Just deployed
Redis
Just deployed
/data
Just deployed
Just deployed
Postgres
Just deployed
/var/lib/postgresql/data
Just deployed
Bucket
Bucket
Just deployed
Deploy and Host Dify (w/ AI model setup) on Railway
Dify is an open-source builder for AI apps, agents and workflows. Put your OpenAI, Anthropic or OpenRouter key in the deploy form: Setup creates your admin, installs the provider and picks default models, so apps work after sign-in.

About Hosting Dify (w/ AI model setup)
You get Dify 1.18, Postgres with pgvector, Redis and a Railway Bucket, on one URL. Sign in at the Dify service's URL with the email and password you typed. It needs about 2.3 GB of memory: Trial, Hobby or Pro plan.
Common Use Cases
- Chatbots on your own documents
- AI workflows with code steps
- Internal assistants and agents
Dependencies for Dify (w/ AI model setup) Hosting
- PostgreSQL (pgvector)
- Redis
- Railway Bucket
Deployment Dependencies
Implementation Details

Knowledge bases need an OpenAI or OpenRouter key. To add a key later, set it on Setup and redeploy. Back up Postgres and the Bucket. SMTP email needs a Railway Pro plan.
Why Deploy Dify (w/ AI model setup) 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 Dify (w/ AI model setup) 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.
Updated 2026-10-29: SMTP plan note.
Template Content
Plugin daemon
langgenius/dify-plugin-daemon:0.6.12-localScheduler
langgenius/dify-api:1.18.0Redis
redis:8.2ADMIN_EMAIL
Your email address. You sign in to Dify with it; Setup creates this admin on the first deploy.
ADMIN_PASSWORD
Your Dify password: at least 8 characters, with a letter and a number.
Postgres
pgvector/pgvector:pg17Bucket
Bucket

