
Deploy DocsGPT Assistant
DocsGPT document Q&A with a Celery worker, pgvector, a bucket and a login
Application
DocsGPT Worker
Just deployed
DocsGPT
Just deployed
DocsGPT Gateway
Just deployed
DocsGPT Files
Bucket
Just deployed
Data
DocsGPT PostgreSQL
Just deployed
/var/lib/postgresql/data
DocsGPT Redis
Just deployed
/data
Deploy and Host DocsGPT Assistant on Railway
DocsGPT is an open-source assistant that answers questions from your own documents. Upload PDFs, Word files, Markdown, web pages, spreadsheets or slides, and DocsGPT splits and embeds them, retrieves the passages that match each question and answers with citations. It also builds agents and prompts on top of those sources.
About Hosting DocsGPT Assistant
The template runs DocsGPT 1.1.0 from the official image, pinned by digest, as an API with the web UI and a separate Celery worker that parses, chunks and embeds every upload with a local embedding model, so documents are never sent out for embedding. Embeddings live in PostgreSQL with pgvector, uploaded files in a private Railway Bucket shared by the API and the worker, and the task queue in Redis with an append-only file. A Caddy gateway is the only public service: sign in as admin with the generated password from the gateway's DOCSGPT_PASSWORD variable, and the browser stays signed in for 30 days. Answers come from DocsGPT's free hosted model by default, which receives your questions and the retrieved passages; set LLM_PROVIDER and API_KEY to use OpenAI, Anthropic, Google, Groq, OpenRouter or your own OpenAI-compatible server.
Why Deploy DocsGPT Assistant on Railway
Railway provides the HTTPS domain, private networking between the gateway, DocsGPT, its worker, PostgreSQL and Redis, persistent volumes, object storage, generated secrets and health-checked deploys. The worker waits for the API's database migrations, every secret is generated at deploy time, nothing but the password-protected gateway is reachable from the internet, and the gateway refuses requests that other websites start in a signed-in browser.
Common Use Cases
- Ask questions across product documentation, runbooks, contracts or research papers and get cited answers
- Give a small team a private assistant over shared internal documents without sending them to a hosted RAG service
- Build DocsGPT agents and prompts over your sources and test them with your own model provider
Dependencies for DocsGPT Assistant Hosting
The deployment uses DocsGPT (documentation), PostgreSQL with pgvector, Redis, Caddy and a Railway Bucket.
Deployment Dependencies
- DocsGPT 1.1.0 API with web UI and Celery worker, from
arc53/docsgpt - PostgreSQL 16 with pgvector 0.8.7 and a 5 GB volume
- Redis 8 with a 1 GB volume
- Caddy 2.11 gateway with a generated login
- A private Railway Bucket for uploaded documents
- Optional: an API key for OpenAI, Anthropic, Google, Groq, OpenRouter or Novita, or an OpenAI-compatible model server
Template Content
DocsGPT Worker
arc53/docsgpt:1.1.0DocsGPT
arc53/docsgpt:1.1.0DocsGPT PostgreSQL
pgvector/pgvector:0.8.7-pg16DocsGPT Gateway
caddy:2.11.9-alpineDocsGPT Redis
redis:8.10.3DocsGPT Files
Bucket

