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

# Deploy Dify (Weaviate)

VDB: Weaviate + Mail: Resend + ETL: Unstructured 

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

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

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

## Template content

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

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

### Weaviate https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/publication/logo/35d9c94b-b826-4592-8ada-f26fb501b5d4/weaviate-logo-light-transparent.png

- **Image:** semitechnologies/weaviate

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

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

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

- **Source:** railwayapp-templates/minio-console
- **Start command:** `/bin/sh -c "  sleep 10 && \  /usr/bin/mc config host add minio ${MINIO_ENDPOINT} ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD} && \  if ! /usr/bin/mc ls minio/${MINIO_BUCKET}; then \      /usr/bin/mc mb minio/${MINIO_BUCKET}; \      /usr/bin/mc anonymous set public minio/${MINIO_BUCKET}/public; \  fi && exit 0"`
- **Public domain:** Yes

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

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

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

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

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

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

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

- **Image:** langgenius/dify-api
- **Health check:** /health
- **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 : [Weaviate](https://weaviate.io) (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)
- [Weaviate](https://weaviate.io)
- [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.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/_tTQWm
