
Deploy Glean
Self-hosted RSS reader and knowledge base with full-text, tags and MCP
Just deployed
Just deployed
Redis
Just deployed
Just deployed
Just deployed
Postgres
Just deployed
/var/lib/postgresql/data
Deploy and Host Glean on Railway
Glean is a self-hosted RSS reader and personal knowledge base. It subscribes to RSS and Atom feeds, refreshes them every 15 minutes, extracts full article text, and lets you organise reading with folders, tags, bookmarks, notes and read-later. It also has an admin dashboard and an MCP server that AI assistants can search.
About Hosting Glean
Glean runs as several services: a FastAPI backend, an arq background worker that fetches feeds, two small web front ends (reader and admin), PostgreSQL with pgvector, and Redis as the job queue. This template wires them together over Railway's private network. On the first boot the backend runs the database migrations, creates the admin account and your reader account from generated passwords, and turns open sign-up off, so a fresh public URL can't be claimed by a stranger. Postgres keeps all data on a volume. Updates arrive as Railway update notices when the template repo bumps the pinned Glean release.
Common Use Cases
- A private, ad-free feed reader for news, blogs and release notes, shared with family or a small team
- A read-later and bookmark archive with full-text extraction, notes and tags
- A searchable reading history that AI assistants can query through Glean's MCP server
Dependencies for Glean Hosting
- PostgreSQL 16 with the pgvector extension (included, on a volume)
- Redis 8 for the background job queue (included)
Deployment Dependencies
- Glean source and releases: https://github.com/LeslieLeung/glean
- Template repo (Dockerfiles, start scripts, changelog): https://github.com/aalfath/glean-railway-template
Implementation Details
Services
- Web: the reader app (public URL). nginx serves the UI and proxies
/apiand/mcpto the backend. - Admin: the admin dashboard (its own public URL): users, feeds, sign-up switch, AI embedding settings.
- Backend: Glean API. Runs migrations and the first-boot account setup.
- Worker: fetches feeds every 15 minutes, extracts full text, runs cleanup.
- Postgres: pgvector/pgvector 0.8.7 on PostgreSQL 16, data on a volume.
- Redis: job queue, password-protected, private network only.
After deploy
- Open the Web service URL and sign in with
GLEAN_USER_EMAILand the generatedGLEAN_USER_PASSWORD(Backend service, Variables tab). - Open the Admin service URL and sign in as
adminwith the generatedADMIN_PASSWORD(Backend service, Variables tab). Turn on open sign-up there if you want others to register. - Add feeds in the Web app, or import an OPML file.
AI features (optional). Semantic search and recommendations use an OpenAI-compatible embedding API that you set up in Admin > Embeddings (key, base URL, model). The local "sentence-transformers" provider is left out of this build to keep the image small, so pick an API provider there.
MCP. Create an API token in the Web app's settings, then point an MCP client (streamable HTTP) at https://YOUR-WEB-DOMAIN/mcp/mcp with header Authorization: Bearer YOUR-TOKEN.
Resources. Each service runs within 0.5 GB RAM (Backend and Worker use about 200 to 250 MB), so the stack fits Railway's Free and Trial plans.
Updates. Services build from https://github.com/aalfath/glean-railway-template, which pins Glean by release commit and image digest. When the template repo moves to a new Glean release, Railway shows an update notice in your project; read the repo's CHANGELOG.md first, then apply it. Upstream marks Glean as still in active development, so back up Postgres before major updates.
Why Deploy Glean 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 Glean 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
Redis
redis:8.4.8-alpineGLEAN_USER_EMAIL
Your email address. The first boot creates your reader login with it (sign in on the Web URL).
Postgres
pgvector/pgvector:0.8.7-pg16