All Templates / Storage

PostgreSQL

PostgreSQL

PostgreSQL database service

Deploy PostgreSQL

Postgres

railwayapp-templates/postgres-ssl:16

Just deployed

/var/lib/postgresql/data

Overview

PostgreSQL database service, deployed with Railway's official SSL-enabled image.

How to use

Reference the DATABASE_URL variable to connect to Postgres (e.g. ${{Postgres.DATABASE_URL}}) from another service in your project.

Connecting externally

Connect to the database from outside of Railway using the TCP Proxy.

In a terminal, for example:

psql "postgres://railway:PASSWORD@PROXY_DOMAIN:PROXY_PORT/railway"

Deploy Now

Details

Railway Templates

Created on Sep 7, 2023

62442 total projects

43520 active projects

100% success on recent deploys

Storage



More templates in this category

View Template
ReadySet

ReadySet

A lightweight caching engine for Postgres


Milo

View Template
EdgeDB

EdgeDB

EdgeDB template based on their Docker deployment guide


Ajit Krishna

View Template
Apache Kvrocks

Apache Kvrocks

A drop-in replacement for Redis to store data on a volume.


Bram