Deploy FastGPT Knowledge Base + Workflows
FastGPT knowledge base and AI workflows, factory root password replaced
Code Sandbox
Just deployed
RustFS
Just deployed
FastGPT Plugin
Just deployed
FastGPT
Just deployed
Redis
Just deployed
Postgres
Just deployed
MongoDB
Just deployed
AI Proxy
Just deployed
Deploy and Host FastGPT on Railway
FastGPT is an open source platform for building AI knowledge bases and agent workflows. Import documents, web pages or APIs into datasets, then build chat apps and visual workflows on top of them with retrieval, tool calls, HTTP and MCP nodes, and JavaScript or Python code nodes. It works with OpenAI, Anthropic, DeepSeek, Ollama and other OpenAI compatible providers.
About Hosting FastGPT
This template runs the full open source FastGPT stack: the app, MongoDB (as a replica set), Postgres with pgvector, Redis, RustFS object storage, the plugin service, the code sandbox and AI Proxy for model channels. Every secret is generated at deploy time. FastGPT normally creates its admin account with the password 123456; this template replaces it with a generated one before the app goes online, so a fresh instance cannot be claimed by someone who guesses the default.
First steps after deploy:
- Open the FastGPT service, copy
ROOT_PASSWORDfrom its Variables tab, then open its public domain. - Log in as
rootwith that password. FastGPT asks you to set your own password; do it. - Open the model provider settings from the account menu, add a channel with your provider API key, then enable a chat model and an embedding model.
- Create a knowledge base, upload a document, and build an app or workflow that uses it.
Common Use Cases
- Company or product knowledge base chat with cited answers
- Customer support bots embedded on a website or connected to messaging channels
- Visual AI workflows that mix retrieval, HTTP calls, MCP tools and code
Dependencies for FastGPT Hosting
- FastGPT: the web app and API (public).
- MongoDB: apps, datasets, chats and users, as a single node replica set, with a volume.
- Postgres (pgvector): vector search, plus AI Proxy tables, with a volume.
- Redis: queues, locks and sessions, with a volume.
- RustFS: S3 compatible storage for uploaded files and images, with a volume. Its S3 endpoint is public so avatars and tool icons load; anonymous users can only read the public bucket.
- FastGPT Plugin: system tools and the model provider catalog (private).
- Code Sandbox: runs workflow code nodes in isolation (private).
- AI Proxy: stores model channels and provider keys (private).
Deployment Dependencies
- FastGPT: https://github.com/labring/FastGPT
- FastGPT Plugin: https://github.com/labring/fastgpt-plugin
- AI Proxy: https://github.com/labring/aiproxy
- RustFS: https://github.com/rustfs/rustfs
Key Variables
| Service | Variable | Purpose |
|---|---|---|
| FastGPT | ROOT_PASSWORD | Initial password for the root user. Only applied while root still has the factory password |
| FastGPT | AES256_SECRET_KEY | Encrypts stored secrets. Never rotate after first use |
| FastGPT | ROOT_KEY, FILE_TOKEN_KEY, INVOKE_TOKEN_SECRET | Generated secrets |
| FastGPT | CHECK_INTERNAL_IP | Blocks workflows from calling private addresses (on by default here) |
| MongoDB | WIREDTIGER_CACHE_GB | Mongo cache size, 0.25 GB by default; raise on bigger plans |
| Code Sandbox | SANDBOX_POOL_SIZE | Pre-warmed code workers (2) |
Notes: plan for Hobby or higher. The app and code sandbox need more than the Free plan's 0.5 GB of RAM, and real datasets outgrow Trial volumes quickly. The Agent Sandbox (virtual machine) feature is not included because it needs a Docker socket. Each boot of the FastGPT service initializes twice (once on loopback to secure the root account), so restarts take a little longer.
Why Deploy FastGPT 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 FastGPT 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.
Template Content
Code Sandbox
ghcr.io/labring/fastgpt-code-sandbox:v5.0.0RustFS
rustfs/rustfs:1.0.4FastGPT Plugin
ghcr.io/labring/fastgpt-plugin:v1.2.0Redis
redis:7.4.6-alpinePostgres
pgvector/pgvector:0.8.1-pg17MongoDB
mongo:5.0.32AI Proxy
ghcr.io/labring/aiproxy:v0.7.7
