Deploy PostgreSQL pgrust

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

Deploy PostgreSQL pgrust

/var/lib/postgresql/data

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.


Template Content

More templates in this category

View Template
RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set
S3-compatible object store, keys and public URL preset, volume kept

SuperSlowSloth
0
View Template
TimescaleDB
Time-series analytics on PostgreSQL: fast, familiar, scalable.

Rakit
2
View Template
Neo4j 2026.10 Community
Neo4j graph database with APOC, Browser, Bolt TCP proxy and a volume

My Projects
0