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

# Deploy Dify (Qdrant)

VDB: Qdrant + Mail: Resend + ETL: Unstructured

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

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

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

## Template content

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

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

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

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

### 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"`

### 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"`

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

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

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

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

### Qdrant https://baserow-media.ams3.digitaloceanspaces.com/user_files/VIpNy8EgVc6S5SFzFnVrF9FFwaUg4W5d_3a00cb0c19cb063fe4271501b924b51fdaf7381b61c4164ce98f3952b33dd251.png

- **Image:** langgenius/qdrant
- **Public domain:** Yes

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

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

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

## 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) (Self-hosted)
- ETL : [Unstructured](https://unstructured.io)
- Transactional Email : [Resend](https://resend.com)
- RAG Source (Option) : [Notion](https://www.notion.so)

## Requirements
- [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
- `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/Vq0Ijc
