database_deploy_from_template
Deploy a pre-configured database using Railway's official templates and best practices for standard database types like PostgreSQL, MongoDB, and Redis with security defaults.
Instructions
[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
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ID of the project where the database will be deployed | |
| type | Yes | Type of database to deploy (e.g., postgresql, mongodb, redis). Use service_create_from_image for other types. | |
| region | Yes | Region where the database should be deployed, try us-west1 before all other regions | |
| environmentId | Yes | Environment ID where the database will be deployed (usually obtained from project_info) | |
| name | No | Optional custom name for the database service. Default: {type}-database |