---
title: "Deploy Bisheng"
description: "Bisheng: open-source LLM app platform for RAG knowledge bases and workflows"
category: "AI/ML"
url: https://railway.com/deploy/bisheng
---

# Deploy Bisheng

Bisheng: open-source LLM app platform for RAG knowledge bases and workflows

**[Deploy Bisheng on Railway](https://railway.com/template/bisheng)**

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

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

## Template content

### Bisheng-API https://raw.githubusercontent.com/dataelement/bisheng/v3.0.1/src/frontend/platform/public/assets/bisheng/logo.jpeg

- **Source:** https://github.com/aalfath/bisheng-railway-template
- **Health check:** /health

### Elasticsearch https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/elasticsearch.png

- **Source:** https://github.com/aalfath/bisheng-railway-template

### Milvus https://raw.githubusercontent.com/milvus-io/artwork/master/icon/color/milvus-icon-color.png

- **Source:** https://github.com/aalfath/bisheng-railway-template
- **Health check:** /healthz

### Bisheng https://raw.githubusercontent.com/dataelement/bisheng/v3.0.1/src/frontend/platform/public/assets/bisheng/logo.jpeg

- **Source:** https://github.com/aalfath/bisheng-railway-template
- **Health check:** /health
- **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"`

### OpenFGA https://avatars.githubusercontent.com/u/103602580?v=4

- **Source:** https://github.com/aalfath/bisheng-railway-template
- **Health check:** /healthz

### MySQL https://devicons.railway.app/i/mysql.svg

- **Image:** mysql:8
- **Start command:** `docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G`

### Bisheng-Worker https://raw.githubusercontent.com/dataelement/bisheng/v3.0.1/src/frontend/platform/public/assets/bisheng/logo.jpeg

- **Source:** https://github.com/aalfath/bisheng-railway-template

### RustFS https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/rustfs.png

- **Source:** https://github.com/aalfath/bisheng-railway-template
- **Health check:** /health

## Documentation

# Deploy and Host Bisheng on Railway

Bisheng is an open-source platform for building LLM applications, made by DataElem. It combines knowledge bases with retrieval-augmented generation, a visual workflow builder, assistants and agents, model management and user permissions in one web app. It works with OpenAI-compatible APIs, DeepSeek, Qwen, Ollama and other model providers.

## About Hosting Bisheng

Bisheng runs as several services. A FastAPI backend serves the API and runs database migrations. A Celery worker parses documents and runs workflows. An nginx frontend serves the web UI. It needs MySQL for data, Redis for cache and the task queue, OpenFGA for permissions, Elasticsearch for keyword search, Milvus for vectors and S3-compatible storage for uploaded files. This template deploys all of them from one GitHub repo, with images pinned by digest and passwords generated at deploy. Each data service has its own volume. Only the web UI gets a public domain, and the rest talk over Railway's private network.

## Common Use Cases

* Build a company knowledge base and chat with your documents using RAG
* Design multi-step LLM workflows and assistants with a visual editor
* Run a self-hosted AI app platform for a team, with roles and permissions

## Dependencies for Bisheng Hosting

* MySQL and Redis (Railway databases)
* OpenFGA, Elasticsearch 8, Milvus 2.5 and RustFS (S3-compatible storage), built from the template repo

### Deployment Dependencies

* Bisheng source and releases: https://github.com/dataelement/bisheng
* Bisheng Docker deployment files: https://github.com/dataelement/bisheng/tree/main/docker
* Template repo (Dockerfiles, start scripts, changelog): https://github.com/aalfath/bisheng-railway-template

### Implementation Details

* Version: Bisheng v3.0.1 (`dataelement/bisheng-backend` and `dataelement/bisheng-frontend`), OpenFGA v1.19.0, Elasticsearch 8.19.25, Milvus v2.5.27 (standalone with embedded etcd), RustFS 1.0.6.
* First login: open the public URL and register right after the deploy. The first account registered becomes the super admin, so do this before you share the URL. There is no default password.
* Then add a model provider under Models (an API key from OpenAI, DeepSeek, Qwen and so on, or an Ollama URL) before you create knowledge bases or workflows.
* Updates: when the template repo's `main` branch changes, Railway shows an update notice. Read `CHANGELOG.md` in the repo before you apply it. The API runs database migrations on start.
* Not included: the optional "App Factory" runtime (it needs a Docker socket), the code-runner sandbox, OnlyOffice and the GPU model services.

## Why Deploy Bisheng 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 Bisheng 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/bisheng
