
Deploy MaxKB
Open-source RAG knowledge base and AI agent platform, with pgvector
Redis
Just deployed
/data
Just deployed
/opt/maxkb
Just deployed
/var/lib/postgresql/data
Deploy and Host MaxKB on Railway
MaxKB is an open-source platform from 1Panel for building knowledge-base assistants and AI agents. You upload documents or crawl websites into a knowledge base, and MaxKB splits, embeds and searches them for retrieval-augmented generation (RAG). A visual workflow editor builds chat apps and agents that call tools, MCP servers and any major LLM.
About Hosting MaxKB
This template deploys MaxKB v2.10.9-lts as three services: MaxKB (web UI and API on a public domain, plus its local embedding model server and task worker), Postgres (Railway PostgreSQL with pgvector, for users, apps, documents and vectors) and Redis (cache, sessions and task queue). Each has its own volume, and they talk over Railway's private network. The PostgreSQL and Redis bundled in the upstream image stay off. On start, MaxKB waits for Postgres, enables pgvector and runs its migrations. The admin password is generated at deploy time, so the public upstream default is never used. MaxKB needs about 2.5 GB of RAM, so use the Hobby plan or higher.
Common Use Cases
- Internal knowledge assistant that answers from company docs, wikis and websites, with citations
- Customer-support chatbot embedded on your website, backed by your product documentation
- Agent workflows with branching, tool calls, MCP servers and custom Python functions
Dependencies for MaxKB Hosting
- PostgreSQL with pgvector (included, Railway Postgres)
- Redis (included, Railway Redis)
- An API key for an LLM provider (OpenAI, Anthropic, DeepSeek, Gemini, Ollama and others), added in the MaxKB UI after deploy
Deployment Dependencies
- MaxKB on GitHub and its v2.10.9-lts release
- MaxKB documentation
- Template repository (Dockerfile, start script, changelog)
Implementation Details
After deploy:
- Wait until the MaxKB service is healthy. The first deploy pulls a 1.3 GB image and runs the migrations; allow about 5 minutes.
- Open the MaxKB domain and sign in as
adminwith the password in the MaxKB service'sMAXKB_DEFAULT_PASSWORDvariable. Change it when MaxKB asks. - Add a model provider under Models, create a knowledge base, upload documents and build an application.
The deploy form asks for nothing: database and Redis settings are references, and the admin password and MAXKB_SECRET_KEY are generated. MAXKB_DEFAULT_PASSWORD only sets the first password; change it later in the UI. The built-in embedding model is tuned for Chinese text, so for English documents add an embedding model from your provider. Resources: MaxKB used about 1.5 to 2.5 GB of RAM in our tests, so it does not fit the Free or Trial plan (0.5 GB per service); plan for at least 2.5 GB. Optional settings such as MAXKB_CORE_WORKER (default 1), MAXKB_LANGUAGE_CODE (default en-US) and MAXKB_TIME_ZONE (default UTC) can be added to the MaxKB service. Updates: the MaxKB service builds from the template repository, so when a new MaxKB version is pinned there, Railway shows an update notice and you choose when to apply it. Back up the Postgres service with pg_dump; it includes uploaded files.
Why Deploy MaxKB 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 MaxKB 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

