database

Deploy and connect Railway database services like Postgres, Redis, MySQL, and MongoDB.

4|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/sethdavis512/iridium --skill database-sethdavis512
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: database
Source: https://github.com/sethdavis512/iridium/tree/main/.agents/skills/database
Command: npx skills add https://github.com/sethdavis512/iridium --skill database-sethdavis512

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Provisioning and wiring up databases on Railway involves multiple GraphQL API calls, template lookups, and variable references that are easy to get wrong. This Skill automates the entire flow of adding official Railway database templates and connecting them to your services. ## Core Features & Use Cases - Database Provisioning: Deploy official Railway templates for PostgreSQL, Redis, MySQL, and MongoDB with pre-configured volumes, networking, and connection variables. - Duplicate Detection: Checks existing services via environment config before creating anything, preventing accidental duplicate databases. - Service Wiring: Connects backend services to databases using private-network reference variables like ${{Postgres.DATABASE_URL}}. - Use Case: A user says "add postgres and connect to my server" — the Skill checks for an existing Postgres instance, deploys the template if missing, waits for deployment, and stages the DATABASE_URL variable reference on the target service. ## Quick Start Ask the assistant to add a Postgres database to your Railway project and connect it to your backend service.

Frequently Asked Questions about database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a Postgres database to my Railway project?▼

Fetch the official postgres template via the Railway GraphQL API, then deploy it with the templateDeployV2 mutation using your project, environment, and workspace IDs. The template creates the service, volume, and connection variables automatically.

How do I connect a Railway service to a database?▼

Add a variable reference like ${{Postgres.DATABASE_URL}} to your service's environment config. Backend services should use private URLs for internal networking, while frontends must use public URLs or route through a backend API.

Which databases does Railway support as official templates?▼

Railway provides official maintained templates for PostgreSQL, Redis, MySQL, and MongoDB. Each includes pre-configured volumes, networking, and connection variables, deployed via template codes postgres, redis, mysql, and mongodb.

Can a frontend connect directly to a Railway database?▼

Frontends run in the browser and cannot access Railway's private network. They must use public URL variables with TCP proxy enabled, or preferably route through a backend API that connects to the database privately.

What happens if a database already exists in my Railway project?▼

The workflow checks existing services by inspecting source.image in the environment config before creating anything. If a matching database image is found, it skips creation and proceeds directly to wiring connection variables.