PgBouncer+Postgres+PgAdmin : 1$

Optimized PostgreSQL Database Stack

Deploy PgBouncer+Postgres+PgAdmin : 1$

postgres

antisofisme/railway

Just deployed

/var/lib/postgresql/data

pgadmin

antisofisme/railway

Just deployed

pgbouncer

antisofisme/railway

Just deployed

Optimized PostgreSQL Database Stack

What You Get

This template provides a complete PostgreSQL database stack optimized for high performance and production-ready, with the best configuration for modern applications like n8n.

Components:

  • PostgreSQL 17: Main database with high-performance configuration
  • PgBouncer: Connection pooler to reduce connection overhead and increase throughput
  • pgAdmin: Intuitive web interface for database management

Key Features

  • Production Ready: Pre-configured with best practices for production deployment
  • Zero Config: Runs automatically with synchronization between components
  • IPv6 Ready: Full IPv6 communication support for Railway compatibility
  • Performance Optimized: Parameters specially tuned for maximum throughput
  • Secure: SSL/TLS enabled by default for encrypted connections
  • Resource Efficient: Optimized scaling and caching settings

Usage Instructions

  1. Deploy Template: Simply click "Deploy" and Railway will set up all components
  2. Access pgAdmin: Open the public URL to access the pgAdmin interface
  3. Application Connection: Use Railway variables to connect to PostgreSQL through PgBouncer

Environment Variables

  • Database accessed via: ${{pgbouncer.PGBOUNCER_HOST}}:${{pgbouncer.PGBOUNCER_LISTEN_PORT}}
  • Default credentials: User=n8n, Password=postgres123 (change as needed)

Technical Specifications

  • PostgreSQL 17 with persistent storage
  • PgBouncer with "transaction" pool mode and connection optimization
  • pgAdmin 4 for database administration through web UI
  • Pre-generated SSL/TLS certificates for encrypted connections

Support me if you think this is good, one dollar is also very valuable to me, I'm really broke man. https://linktr.ee/givemesomehope


Template Content

More templates in this category

View Template

ReadySet

A lightweight caching engine for Postgres


View Template

Flare

A modern, lightning-fast file sharing platform built for self-hosting


View Template

EdgeDB

EdgeDB template based on their Docker deployment guide