railway-mcp

by jason-tan-swe
Verified

database_deploy_from_template

[WORKFLOW] Deploy a pre-configured database using Railway's official templates and best practices

⚡️ Best for: ✓ Standard database deployments ✓ Quick setup with security defaults ✓ Common database types (PostgreSQL, MongoDB, Redis)

⚠️ Not for: × Custom database versions × Complex configurations × Unsupported database types

→ Prerequisites: database_list_types

→ Alternatives: service_create_from_image

→ Next steps: variable_list, service_info

→ Related: volume_create, service_update

Input Schema

NameRequiredDescriptionDefault
environmentIdYesEnvironment ID where the database will be deployed (usually obtained from project_info)
nameNoOptional custom name for the database service. Default: {type}-database
projectIdYesID of the project where the database will be deployed
regionYesRegion where the database should be deployed, try us-west1 before all other regions
typeYesType of database to deploy (e.g., postgresql, mongodb, redis). Use service_create_from_image for other types.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "environmentId": { "description": "Environment ID where the database will be deployed (usually obtained from project_info)", "type": "string" }, "name": { "description": "Optional custom name for the database service. Default: {type}-database", "type": "string" }, "projectId": { "description": "ID of the project where the database will be deployed", "type": "string" }, "region": { "description": "Region where the database should be deployed, try us-west1 before all other regions", "enum": [ "asia-southeast1", "asia-southeast1-eqsg3a", "europe-west4", "europe-west4-drams3a", "us-east4", "us-east4-eqdc4a", "us-west1", "us-west2" ], "type": "string" }, "type": { "description": "Type of database to deploy (e.g., postgresql, mongodb, redis). Use service_create_from_image for other types.", "enum": [ "postgres", "mysql", "mongodb", "redis", "minio", "sqlite3", "pocketbase", "clickhouse", "mariadb", "pgvector" ], "type": "string" } }, "required": [ "projectId", "type", "region", "environmentId" ], "type": "object" }