---
title: "Storage"
description: "Run Postgres, Redis, MySQL and object storage on Railway: pooling, backups, migrations and vector search."
url: https://railway.com/guides/topics/storage
guides: 31
last_updated: 2026-11-05T22:09:38.500Z
---

# Storage

Run Postgres, Redis, MySQL and object storage on Railway: pooling, backups, migrations and vector search.

## Get started

1. [Deploy a Next.js App with Postgres](https://railway.com/guides/nextjs.md): Deploy a Next.js app with a Postgres database on Railway. Covers standalone output, one-click deploys, Dockerfile setup, database wiring, and pre-deploy migrations.
2. [Add Connection Pooling to Postgres with PgBouncer](https://railway.com/guides/connection-pooling-pgbouncer.md): Why Postgres needs a connection pooler, how to add PgBouncer to a Railway Postgres service, and how to configure your application for pooled and unpooled connections.
3. [Back Up and Restore Postgres](https://railway.com/guides/postgres-backups-restores.md): Set up volume backups and point-in-time recovery for Postgres on Railway, take logical dumps with pg_dump, and run a restore drill so you know recovery works before you need it.

## Build and deploy

- [Use Storage Buckets for Uploads, Exports, and Assets](https://railway.com/guides/storage-buckets-guide.md): Set up Railway storage buckets for file uploads via presigned URLs, background export generation, and asset serving through a backend proxy.
- [Use Object Storage for AI Agent Outputs](https://railway.com/guides/object-storage-for-ai-agents.md): Store AI agent artifacts in S3-compatible object storage on Railway. Where generated files, transcripts, and reports should live, how to write them from a worker, and how to share them with presigned URLs.
- [Deploy a LangGraph Agent Backend](https://railway.com/guides/langgraph-agent-backend.md): Run a LangGraph agent as a FastAPI service on Railway with Postgres checkpointing for durable conversation state and Claude as the LLM.
- [Self-Host Keycloak for Authentication](https://railway.com/guides/keycloak-authentication.md): Deploy Keycloak on Railway with a Postgres database, an admin account, and a public domain. Configure a realm and an OIDC client for your applications.
- [Deploy a Jupyter Server for Team Data Work](https://railway.com/guides/jupyter-server-team.md): Run a shared JupyterLab server on Railway with token authentication, a persistent volume for notebooks, and health checks for zero-downtime deploys.
- [Build Hybrid Search with Postgres Full-Text Search and pgvector](https://railway.com/guides/hybrid-search-postgres-pgvector.md): Combine Postgres full-text search and pgvector similarity search in one database, then merge results with Reciprocal Rank Fusion. Includes schema, SQL, and a deployable Node API.
- [Run an Embeddings Pipeline with an External API and pgvector](https://railway.com/guides/embeddings-pipeline.md): Deploy a batch worker on Railway that generates embeddings through an external API and stores them in Postgres with pgvector. Covers schema design, safe concurrent processing, and the psycopg2 vector adaptation gotcha.
- [Run ClickHouse for Product Analytics](https://railway.com/guides/clickhouse-analytics.md): Deploy ClickHouse on Railway from the template or the official Docker image, size its volume for event data, and ingest and query analytics events from a Node.js service.
- [Self-host Supabase with Postgres, Auth, and Storage](https://railway.com/guides/supabase.md): Deploy the Supabase stack on Railway with Postgres, GoTrue auth, PostgREST API, storage, and the Studio dashboard. Covers multi-service setup and JWT configuration.
- [Self-host Strapi with Postgres and File Uploads](https://railway.com/guides/strapi.md): Deploy Strapi on Railway with a Postgres database and persistent file storage. Covers one-click template deployment, environment configuration, and upload provider setup.
- [Deploy a RAG Pipeline with pgvector](https://railway.com/guides/rag-pipeline-pgvector.md): Build a retrieval-augmented generation pipeline on Railway using Postgres with pgvector for vector storage, an external embedding API, and an LLM for generation. Covers document ingestion, similarity search, and deployment.
- [Self-host Payload CMS with Postgres](https://railway.com/guides/payload-cms.md): Deploy Payload CMS 3.x on Railway inside a Next.js application. Covers database setup, media storage with buckets, and production configuration.
- [Deploy a Full-Stack Next.js App with Postgres, Background Jobs, and File Uploads](https://railway.com/guides/fullstack-nextjs.md): Deploy a production Next.js application on Railway with a Postgres database, Redis-backed background workers, and file uploads via storage buckets. Covers multi-service architecture and production hardening.
- [Add Authentication to a Frontend Application](https://railway.com/guides/frontend-authentication.md): Implement authentication in a frontend application deployed on Railway. Covers third-party providers (Clerk, Supabase Auth), session-based auth with Postgres, and common deployment pitfalls.
- [Deploy an AI-Powered SaaS App on Railway](https://railway.com/guides/deploy-ai-saas.md): Deploy a production AI-powered SaaS application on Railway with an Express backend, Postgres database, and external LLM API integration. Covers API key management, request caching, rate limiting, and async processing for longer tasks.
- [Deploy a SaaS Backend with Postgres, Workers, and Webhooks](https://railway.com/guides/saas-backend.md): Set up a production SaaS backend on Railway with an API service, Postgres database, background worker, and cron job for webhook processing.
- [Hosting Postgres with GeoLite2: a practical guide to IP geolocation, data loading, and updates](https://railway.com/guides/hosting-postgres-with-geolite2.md): A practical guide to hosting Postgres with GeoLite2, loading data and handling updates

## Run in production

- [Migrate a Production Database into Railway with Minimal Downtime](https://railway.com/guides/migrate-database-minimal-downtime.md): Move a production PostgreSQL database into Railway using dump and restore or logical replication, with a cutover checklist that keeps downtime to seconds.
- [Create a Bridge from Railway to AWS RDS with Tailscale](https://railway.com/guides/bridge-railway-to-rds-with-tailscale.md): Learn how to securely access your AWS RDS database from Railway using a Tailscale subnet router.
- [Hosting Postgres with pgvector: provider tradeoffs, migrations, indexes, and tuning](https://railway.com/guides/hosting-postgres-with-pgvector.md): A practical guide to hosting Postgres with pgvector. Covers provider tradeoffs, automating migrations, choosing between IVFFlat and HNSW indexes, and scaling for vector workloads.
- [How to Handle Database Connection Pooling](https://railway.com/guides/database-connection-pooling.md): Understand database connection pooling and how it helps improve performance of your applications
- [Automated PostgreSQL Backups](https://railway.com/guides/automated-postgresql-backups.md): A step-by-step guide on automatic PostgreSQL backups on Railway using a one-click template.
- [How to Backup and Restore Your Postgres Database](https://railway.com/guides/postgre-backup.md): In this post, we will go over the process of backing up and restoring your Postgres database hosted on Railway.
- [How to Backup Your Redis Instance](https://railway.com/guides/redis-backup.md): A quick and easy guide for retrieving your data from your project's Redis plugin.

## Compare and decide

- [Run Redis as a Cache vs a Persistent Store](https://railway.com/guides/redis-cache-vs-store.md): Configure Redis as a cache or as a durable store on Railway. Covers the persistence settings, eviction policies, and start commands for each mode.
- [The Best PostgreSQL Hosting for Developers in 2026](https://railway.com/guides/best-postgresql-hosting-2026.md): Postgres hosting fragmented into three shapes in 2026: integrated PaaS, dedicated SaaS, and hyperscaler-native. A ranking that helps you pick the shape before you pick the vendor.

## More guides

- [First-Class Managed Databases on Railway](https://railway.com/guides/first-class-databases-on-railway.md): A guide to features of a first-class managed database offering, and how to enable one on Railway.
- [Schedule, Retry, and Dead-Letter Jobs with BullMQ](https://railway.com/guides/bullmq-jobs-retry-dlq.md): Run BullMQ on Railway with a Redis service and an always-on worker. Covers repeatable job schedules, retries with exponential backoff, and a dead-letter queue pattern.

## Related topics

- [Frontend](https://railway.com/guides/topics/frontend.md): Ship Next.js, Astro, SvelteKit and SPAs, and run Node.js, Bun and full-stack TypeScript apps.
- [AI Agents](https://railway.com/guides/topics/ai.md): Host agents, MCP servers, RAG pipelines, model gateways and inference services.
- [Backend](https://railway.com/guides/topics/backend.md): APIs, background workers, queues, cron jobs and webhooks.
- [Frameworks and Languages](https://railway.com/guides/topics/frameworks.md): Deploy apps in Python, Go, Rust, Ruby, PHP, Java, Elixir and more, with their frameworks.
- [Comparisons and Migrations](https://railway.com/guides/topics/comparisons.md): How Railway compares with other platforms, what it costs, and how to move over from Heroku, AWS and others.
- [Containers and Hosting](https://railway.com/guides/topics/containers.md): Deploy from Docker and Compose, self-host open-source tools, and scale across replicas and regions.
