---
title: "Deploy Dify (Qdrant Cloud)"
description: "VDB: Qdrant Cloud + Mail: Resend + ETL: Unstructured"
category: "AI/ML"
url: https://railway.com/deploy/Hg3Y2E
---

# Deploy Dify (Qdrant Cloud)

VDB: Qdrant Cloud + Mail: Resend + ETL: Unstructured

**[Deploy Dify (Qdrant Cloud) on Railway](https://railway.com/template/Hg3Y2E)**

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

- **Creator:** Vox
- **Category:** AI/ML
- **Total deploys:** 3

## Template content

### Api https://avatars.githubusercontent.com/u/127165244?v=4

- **Image:** langgenius/dify-api
- **Health check:** /health
- **Public domain:** Yes

### Sandbox https://avatars.githubusercontent.com/u/127165244?v=4

- **Image:** langgenius/dify-sandbox

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

- **Image:** postgres:15-alpine
- **Start command:** `/bin/sh -c "unset PGPORT; docker-entrypoint.sh postgres --port=5432"`

### Storage https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png

- **Image:** minio/minio
- **Start command:** `/bin/sh -c "exec minio server --address [::]:$MINIO_PRIVATE_PORT $RAILWAY_VOLUME_MOUNT_PATH"`

### Storage console https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png

- **Source:** railwayapp-templates/minio-console
- **Start command:** `/bin/sh -c "exec console server --host 0.0.0.0 --port $PORT"`
- **Public domain:** Yes

### Web https://avatars.githubusercontent.com/u/127165244?v=4

- **Image:** langgenius/dify-web
- **Health check:** /
- **Public domain:** Yes

### Worker https://avatars.githubusercontent.com/u/127165244?v=4

- **Image:** langgenius/dify-api

### Storage provision https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png

- **Image:** minio/mc
- **Start command:** `/bin/sh -c "sleep 10 && /usr/bin/mc config host add minio ${MINIO_ENDPOINT} ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD} && /usr/bin/mc mb minio/${MINIO_BUCKET} && /usr/bin/mc anonymous set public minio/${MINIO_BUCKET}/public && exit 0"`

### Redis https://devicons.railway.app/i/redis.svg

- **Image:** redis:6-alpine

## Documentation

# Dify

[Dify](https://dify.ai) is an open-source platform for building AI applications that combines Backend-as-a-Service and LLMOps to streamline the development of generative AI solutions.

## Tools
- Vector Database : [Qdrant](https://qdrant.tech) (Cloud)
- ETL : [Unstructured](https://unstructured.io)
- Transactional Email : [Resend](https://resend.com)
- RAG Source (Option) : [Notion](https://www.notion.so)

## Requirements
- [Qdrant](https://qdrant.tech) (Start from $0): Vector Search for RAG
- [Resend](https://resend.com) (Free for 3K emails/mo.): Sending out email for password reset
- [Unstructured](https://unstructured.io/api-key-hosted) ($1/1K pages): ETL for LLMs
- [Notion Public Integration](https://www.notion.so/profile/integrations) (Optional) : For RAG from Notion

## Config
- `QDRANT_API_KEY` : Copy from [Qdrant Cloud](https://cloud.qdrant.io/) (Dashboard \> Clusters \> Cluster \> API Keys)
- `QDRANT_URL` : Copy from [Qdrant Cloud](https://cloud.qdrant.io/) (Dashboard \> Clusters \> Cluster \> Endpoint)
- `RESEND_API_KEY` : Copy from [Resend API keys](https://resend.com/api-keys)
- `MAIL_DEFAULT_SEND_FROM`  : Sender email address via Resend
- `UNSTRUCTURED_API_KEY` :  Copy from [Unstructured](https://app.unstructured.io/keys)
- `NOTION_CLIENT_ID` : Copy from [Notion](https://www.notion.so/profile/integrations) (OAuth Client ID)
- `NOTION_CLIENT_SECRET` : Copy from [Notion](https://www.notion.so/profile/integrations) (OAuth Client Secret)

## Setup
1. Access to the public URL of “Web”
2. In case the admin account setting form is not shown, append `/install` to the end of URL

## Update Dify Version
Just to redeploy the following service (Deploy from the latest Dify’s Docker Images)
- Worker
- Api
- Web
- Sandbox 

## Links
- [Dify Github](https://github.com/langgenius/dify)
- [Dify Docs](https://docs.dify.ai)
- [Qdrant](https://qdrant.tech)
- [Resend](https://resend.com/)
- [Unstructured](https://unstructured.io)
- [Notion Integration](https://www.notion.so/my-integrations)

## 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/Hg3Y2E
