---
title: "Deploy PostgreSQL HA Cluster (pgvector)"
description: "Postgres cluster for high availability and redundancy with pgvector"
category: "Storage"
url: https://railway.com/deploy/1CQq0n
---

# Deploy PostgreSQL HA Cluster (pgvector)

Postgres cluster for high availability and redundancy with pgvector

**[Deploy PostgreSQL HA Cluster (pgvector) on Railway](https://railway.com/template/1CQq0n)**

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

- **Creator:** Nouns
- **Category:** Storage
- **Total deploys:** 16

## Template content

### pg-2 https://devicons.railway.app/i/postgresql.svg

- **Image:** samscolari/postgresql-repmgr-pgvector

### pg-0 https://devicons.railway.app/i/postgresql.svg

- **Image:** samscolari/postgresql-repmgr-pgvector

### pg-1 https://devicons.railway.app/i/postgresql.svg

- **Image:** samscolari/postgresql-repmgr-pgvector

### pgpool

- **Image:** bitnami/pgpool:latest
- **Start command:** `/bin/sh -c "sleep 75 && /opt/bitnami/scripts/pgpool/entrypoint.sh /opt/bitnami/scripts/pgpool/run.sh"`

## Documentation

Deploy a PostgreSQL HA with Repmgr that extends the official Railway [template](https://railway.com/template/ha-postgres) and comes with the pgvector extension preinstalled.

Run `CREATE EXTENSION vector;` after deploying the template to activate the pgvector extension.

## Similar templates

- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.
- [Redis](https://railway.com/deploy/redis-1) — Self Host Latest Redis with Railway
- [EasyImg](https://railway.com/deploy/easyimg) — Simple self-hostable Nuxt.js personal image hosting system.

Open this page in a browser: https://railway.com/deploy/1CQq0n
