---
title: "Deploy PostgreSQL 15"
description: "PostgreSQL 15 database with data persistence and TCP Proxy"
category: "Storage"
url: https://railway.com/deploy/nAqEGK
---

# Deploy PostgreSQL 15

PostgreSQL 15 database with data persistence and TCP Proxy

**[Deploy PostgreSQL 15 on Railway](https://railway.com/template/nAqEGK)**

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

- **Creator:** Railway Templates
- **Category:** Storage
- **Total deploys:** 177

## Template content

### Postgres-15 https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:15

## Documentation

## Overview

PostgreSQL version 15 database service, deployed with Railway's official [SSL-enabled image](https://github.com/railwayapp-templates/postgres-ssl).

- A [volume](https://docs.railway.app/reference/volumes) is mounted to the service to persist data between builds.

- [TCP proxying](https://docs.railway.app/deploy/exposing-your-app#tcp-proxying) is configured to allow accessing the database from anywhere.

## How to use

Reference the `DATABASE_URL` variable from your service to connect to the database in your tool of choice (e.g. `${{Postgres.DATABASE_URL}}`)

## Connecting

Connect to the database using the proxied domain and port found on the service settings page. The password can be found on the Variables page.

In a terminal, for example:

```
psql "postgres://railway:PASSWORD@PROXY_DOMAIN:PROXY_PORT/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) — A PostgreSQL-based time-series database for analytics on Railway.
- [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/nAqEGK
