database

Installation
Summary

Deploy PostgreSQL, Redis, MySQL, or MongoDB with pre-configured volumes, networking, and connection variables.

  • Supports four official database templates: PostgreSQL, Redis, MySQL, and MongoDB, each with persistent volumes and automatic connection variable setup
  • Always checks for existing databases before creating to avoid duplicates; queries environment config via GraphQL to detect running instances
  • Provides reference variables for connecting other services (e.g., ${{Postgres.DATABASE_URL}} for backends; public URLs available for frontend-to-database patterns)
  • Integrates with the environment skill to wire connection strings into dependent services after deployment
SKILL.md

Database

Add official Railway database services. These are maintained templates with pre-configured volumes, networking, and connection variables.

For non-database templates, see the templates skill.

When to Use

  • User asks to "add a database", "add Postgres", "add Redis", etc.
  • User needs a database for their application
  • User asks about connecting to a database
  • User says "add postgres and connect to my server"
  • User says "wire up the database"

Decision Flow

ALWAYS check for existing databases FIRST before creating.

Related skills

More from railwayapp/railway-skills

Installs
885
GitHub Stars
259
First Seen
Jan 20, 2026