---
title: "Deploy N8N (w/ pgvector)"
description: "N8N AI complete kit. N8N with Postgres pgvector enabled."
category: "AI/ML"
url: https://railway.com/deploy/msyuqd
---

# Deploy N8N (w/ pgvector)

N8N AI complete kit. N8N with Postgres pgvector enabled.

**[Deploy N8N (w/ pgvector) on Railway](https://railway.com/template/msyuqd)**

- **Creator:** OpenData
- **Category:** AI/ML
- **Total deploys:** 133

## Template content

### pgvector https://devicons.railway.app/i/postgresql.svg

- **Image:** pgvector/pgvector:pg18
- **Start command:** `/bin/sh -c "unset PGPORT; docker-entrypoint.sh postgres --port=5432"`

### N8N

- **Image:** n8nio/n8n
- **Public domain:** Yes

## Documentation

# Deploy and Host

This template simplifies the deployment of **N8N**, a robust open-source workflow automation platform, integrated with **pgvector** on your cloud infrastructure. It's specifically designed with **system stability and cost savings** in mind. With a single click, you can set up N8N to create and manage workflows effortlessly.

Upon initial deployment, you can create and initialize your admin account by accessing the public networking URL of your N8N resource.

---

## About Hosting

This template is designed for seamless deployment on Railway, leveraging its robust infrastructure to host your N8N instance. Railway handles the complexities of server management, allowing you to focus on building and automating your workflows.

---

## Why Deploy

A significant advantage of this template is that by utilizing **pgvector** directly within your **PostgreSQL** database, you **save on the additional costs** associated with setting up and maintaining a separate vector database. The template is pre-configured to leverage pgvector's vector storage capabilities, enabling efficient handling of vector data for AI-driven workflows. PostgreSQL also ensures reliable data persistence, preserving your workflows through restarts and redeployments.

---

## Common Use Cases

* **AI-driven workflow automation:** Build workflows that incorporate vector data for tasks like semantic search, recommendation engines, and data analysis.
* **Data processing and transformation:** Automate the extraction, transformation, and loading (ETL) of data, especially when dealing with embeddings and other vector representations.
* **Integrations with AI models:** Connect N8N with various AI services and models, using pgvector to store and retrieve relevant vector data.
* **Custom business logic:** Create complex automation flows tailored to your specific business needs, benefiting from N8N's extensive range of integrations.

---

## Dependencies for

### Deployment Dependencies

This template primarily relies on the following for a smooth deployment:

* **N8N:** The core workflow automation platform.
* **PostgreSQL with pgvector:** The database solution providing both relational and vector storage capabilities.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

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