---
title: "Storage Templates: Postgres, MySQL, Redis, and More"
description: "Deploy database and storage templates on Railway in one click. Run Postgres, MySQL, Redis, and MongoDB on always-on infrastructure."
url: https://railway.com/deploy/category/storage
---

# Deploy databases and storage in one click

Templates in this category deploy databases and storage in one click. Postgres is the most deployed template on Railway, followed by MySQL, Redis, and MongoDB. PostGIS and pgvector cover geospatial and vector search, MinIO provides S3 compatible object storage, and MariaDB and MSSQL round out the relational options.

Every database runs on always-on servers with persistent volumes, private networking to your app, usage based pricing, and a free trial.

## Common questions about Storage templates

### How do I deploy Postgres in one click?

Deploy the PostgreSQL template and Railway creates the database with a volume and connection variables ready to reference from your services. It is the most deployed template on the platform.

### How do my services connect to a database?

Services in the same project connect over private networking using reference variables, so credentials stay out of your code. A TCP proxy can expose the database externally when needed.

### Is my data persistent and backed up?

Data lives on persistent volumes, so restarts and redeploys do not touch it. Volumes support scheduled backups you can restore from.

### Can I run vector search for AI workloads?

Yes. The pgvector template gives Postgres vector similarity search in one click, and it pairs well with the AI templates category for full stacks.

## Related

- Browse all templates: https://railway.com/deploy
- Railway docs: https://docs.railway.com

## All 5 storage templates

- [MongoDB](https://railway.com/deploy/mongo) - MongoDB  database service
- [MySQL](https://railway.com/deploy/mysql) - Deploy a MySQL database service
- [TimescaleDB + PostGIS](https://railway.com/deploy/timescaledb-postgis) - PostgreSQL DB enabled with TimescaleDB and PostGIS
- [Redis](https://railway.com/deploy/redis) - Deploy and Host Redis with Railway
- [PostgreSQL](https://railway.com/deploy/postgres) - PostgreSQL database service

Open this page in a browser: https://railway.com/deploy/category/storage
