Deploy FastGPT Core + RAG

FastGPT chat and RAG with MongoDB, pgvector, Redis and object storage.

Deploy FastGPT Core + RAG

Just deployed

Just deployed

Just deployed

Just deployed

Just deployed

Just deployed

aiproxy-db

postgres:15

Just deployed

Deploy and Host FastGPT Core + RAG on Railway

FastGPT chat and RAG with MongoDB, pgvector, Redis and object storage.

Deployment template. Deployment incurs Railway charges. Supply your own required model, search and external-service credentials; no example provider credentials are included.

About Hosting FastGPT Core + RAG

This template provisions 9 services in one Railway project, with image digests or upstream source revisions pinned, generated internal credentials, linked environment variables and the persistent paths listed below. Public HTTP routes use Railway HTTPS. SQL and internal dependency endpoints stay private. Keep stateful services single-replica and configure your own backup policy.

Live verification — 2026-09-08

All nine services started. MongoDB replica became primary. Public web route and root password login passed. Model-backed chat, RAG quality, restore and external sandbox execution were not tested; the Docker-socket agent sandbox is excluded.

Setup

Log in as root with fastgpt.DEFAULT_ROOT_PSW. Configure your model provider and embedding model in FastGPT before ingesting documents. Keep all generated encryption keys and MongoDB replica identity with your backups.

Dependencies for FastGPT Core + RAG Hosting

Deployment Dependencies

ServiceSourcePersistent volumePublic HTTP
vectorpgvector/pgvector:0.8.0-pg15 (digest pinned)/var/lib/postgresql/dataPrivate only
mongorepository adapter: templates/fastgpt/Mongo.Dockerfile/dataPrivate only
redisredis:7.4 (digest pinned)/dataPrivate only
storagerepository adapter: shared/round4-storage/Dockerfile/dataPrivate only
aiproxy-dbpostgres:15 (digest pinned)/var/lib/postgresql/dataPrivate only
fastgptghcr.io/labring/fastgpt:v4.16.2 (digest pinned)None3000
pluginghcr.io/labring/fastgpt-plugin:v1.1.2 (digest pinned)NonePrivate only
code-sandboxghcr.io/labring/fastgpt-code-sandbox:v4.16.0 (digest pinned)NonePrivate only
aiproxyghcr.io/labring/aiproxy:v0.6.5 (digest pinned)NonePrivate only

Required inputs

No external secrets are required for initial configuration. Follow the setup instructions for application-level onboarding.

Generated credentials: vector.POSTGRES_PASSWORD, mongo.MONGO_INITDB_ROOT_PASSWORD, redis.REDIS_PASSWORD, storage.MINIO_ROOT_USER, storage.MINIO_ROOT_PASSWORD, aiproxy-db.POSTGRES_PASSWORD, fastgpt.ROOT_KEY, fastgpt.DEFAULT_ROOT_PSW, fastgpt.FILE_TOKEN_KEY, fastgpt.AES256_SECRET_KEY, fastgpt.INVOKE_TOKEN_SECRET, fastgpt.PLUGIN_TOKEN, fastgpt.CODE_SANDBOX_TOKEN, fastgpt.AIPROXY_API_TOKEN. Keep them private and preserve relevant encryption keys with backups. Every editor variable includes a description.

Scope and limitations

Nine services. Full OpenSandbox agent execution, agent previews and Docker volume management are excluded: those upstream services require a Docker socket. The separate workflow code sandbox is included. Confirm the current UI handles unavailable agent features clearly. Both S3 buckets start private; confirm signed/proxied downloads and intended public assets.

Recommended acceptance checks

Build and first boot; root login; model-provider configuration; document upload and retrieval; workflow execution; authenticated replica recovery; object downloads; restart and restore. Verify MongoDB 5 lifecycle/support before release.

Operations

Keep database and internal service endpoints private. Railway provides HTTPS for the explicitly exposed HTTP services. Back up the listed persistent volumes and database exports, preserve encryption keys, and test a restore before relying on this instance. Review upstream migrations before upgrades. Single-volume services use one replica; no multi-region or high-availability guarantee is made. A gateway health response only proves the gateway is alive.

Sources

  • Upstream project
  • Reviewed source snapshot
  • Image digest pins: images.round4.lock.json in the template source repository. Source snapshots are research references; image digests do not prove the image was built from that same commit.
  • Base-image pins do not lock every package installed by apt/apk/pip. See the verification scope above before relying on this deployment.

Common Use Cases

  • Build a private knowledge-base assistant with your own model provider.
  • Configure chat and RAG workflows with persistent document storage.

Why Deploy FastGPT Core + RAG on Railway?

Railway groups service deployment, logs, private networking, generated environment references and persistent volumes in one project. This community template supplies the configuration and setup notes; Railway resource charges and external provider costs remain separate. No fixed cost or capacity guarantee is made.


Template Content

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
116
View Template
stella
Self-host stella with web, API, Postgres, Redis, and object storage.

Jan Kubica
5
View Template
Hermes Agent | OpenClaw Alternative with Dashboard
Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

codestorm
67