> ## Documentation Index
> Fetch the complete documentation index at: https://www.paradedb.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Railway

> Deploy ParadeDB on Railway

[Railway](https://railway.com) is a cloud platform for deploying and managing applications. The
[ParadeDB Railway template](https://railway.com/deploy/paradedb) provides a one-click deployment
that runs ParadeDB Community with persistent storage and a TCP proxy.

## One-Click Deploy

Deploy ParadeDB to your Railway account using the button below. You can customize the template settings before deploying.

[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/deploy/paradedb?referralCode=l5qxN4\&utm_medium=integration\&utm_source=button\&utm_campaign=paradedb)

## Configuration

Railway automatically provisions a Docker container running `paradedb/paradedb:latest` with the following
environment variables:

| Variable | Description | Default |
| - | - | - |
| `POSTGRES_USER` | Database user | `postgres` |
| `POSTGRES_PASSWORD` | Database password | Auto-generated |
| `POSTGRES_DB` | Database name | `paradedb` |
| `PGPORT` | Connection port | `5432` |
| `DATABASE_URL` | Private connection string | Auto-generated |
| `DATABASE_PUBLIC_URL` | Public connection string | Auto-generated |

## Connecting to ParadeDB

Railway provides both private and public connection strings. You can find these in the **Variables** tab of your
service in the Railway dashboard.

To connect from other services on your Railway project, use the private `DATABASE_URL`:

```bash theme={null}
psql $DATABASE_URL
```

To connect from your local machine, use the public connection string:

```bash theme={null}
psql $DATABASE_PUBLIC_URL
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.