---
title: "Deploy PostgreSQL pgrust"
description: "PostgreSQL on pgrust, the Rust rewrite of Postgres. SSL on by default."
category: "Storage"
url: https://railway.com/deploy/postgresql-pgrust
---

# Deploy PostgreSQL pgrust

PostgreSQL on pgrust, the Rust rewrite of Postgres. SSL on by default.

**[Deploy PostgreSQL pgrust on Railway](https://railway.com/template/postgresql-pgrust)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/postgresql-pgrust/manifest.json

- **Creator:** Yuddie Inc.
- **Category:** Storage
- **Total deploys:** 1

## Template content

### pgrust https://raw.githubusercontent.com/claretnnamocha/postgres-pgrust/main/docs/assets/pgrust-icon-512.png

- **Image:** ghcr.io/claretnnamocha/postgres-pgrust:18

## Documentation

# Deploy and Host pgrust on Railway

pgrust is an experimental rewrite of PostgreSQL in Rust. It speaks the Postgres wire protocol and passes the Postgres 18 regression suite, so apps, drivers, ORMs and psql connect to it exactly as they would to Postgres.

## About Hosting pgrust

This template runs the postgres-pgrust image: pgrust with SSL on by default plus Railway's Postgres variables and server defaults. Railway recognises it as a Postgres database, so you get the Database tab: browse and edit tables, run SQL, view Stats and Query Statistics, regenerate the password and install extensions. Data lives on a volume, the service stays private until you add public access, and certificates renew automatically. pgrust is not production ready yet, so keep data you cannot lose on stock Postgres.

## Common Use Cases

- Trying pgrust with your own app and schema
- Development and preview databases
- Benchmarking pgrust against Railway's Postgres

## Dependencies for pgrust Hosting

- ghcr.io/claretnnamocha/postgres-pgrust:18, built on malisper/pgrust
- A Railway volume at /var/lib/postgresql/data

### Implementation Details

Connect from another service with `${{pgrust.DATABASE_URL}}`. Clients can use `sslmode=require` or `verify-full`. High Availability and in-place major upgrades in the Config tab only work with Railway's own Postgres image: do not click "Stage postgres-ssl:18" unless you mean to leave pgrust. Source, docs and issues: https://github.com/claretnnamocha/postgres-pgrust

## Why Deploy pgrust 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 pgrust 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.


## Similar templates

- [RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set](https://railway.com/deploy/rustfs-or-just-updated-s3-object-store-p) — S3-compatible object store, keys and public URL preset, volume kept
- [TimescaleDB](https://railway.com/deploy/timescaledb-railway-template) — Time-series analytics on PostgreSQL: fast, familiar, scalable.
- [Neo4j 2026.10 Community](https://railway.com/deploy/neo4j-202610-community) — Neo4j graph database with APOC, Browser, Bolt TCP proxy and a volume

Open this page in a browser: https://railway.com/deploy/postgresql-pgrust
