{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1842b376-635d-4a12-b096-420bfb5acba8",
    "slug": "mastra-agent-on-oracle-database",
    "name": "Mastra Agent on Oracle Database",
    "description": "Mastra weather agent with all state in Oracle Database Free.",
    "url": "https://railway.com/deploy/mastra-agent-on-oracle-database",
    "upstream": {
      "repo_url": "https://github.com/leoisadev1/mastra-template-oracledb"
    }
  },
  "services": [
    {
      "name": "Mastra Server",
      "source": {
        "repo": "https://github.com/leoisadev1/mastra-template-oracledb"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Oracle",
      "source": {
        "repo": "https://github.com/leoisadev1/mastra-template-oracledb"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/oracle/oradata",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "OPENAI_API_KEY",
      "service": "Mastra Server",
      "description": "Provide a value for OPENAI_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ORACLE_DATABASE_PASSWORD",
      "service": "Mastra Server",
      "description": "Provide a value for ORACLE_DATABASE_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ORACLE_DATABASE_CONNECT_STRING",
      "service": "Mastra Server",
      "description": "Provide a value for ORACLE_DATABASE_CONNECT_STRING.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "APP_USER_PASSWORD",
      "service": "Oracle",
      "description": "Provide a value for APP_USER_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mastra-agent-on-oracle-database"
      }
    },
    "cli": "railway deploy --template mastra-agent-on-oracle-database",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1842b376-635d-4a12-b096-420bfb5acba8",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1fe7c2f2-b334-41c0-8dab-54526760da2c": {
                  "icon": "https://unpkg.com/mastra/dist/studio/mastra.svg",
                  "name": "Mastra Server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/leoisadev1/mastra-template-oracledb",
                    "rootDirectory": null
                  },
                  "variables": {
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "ORACLE_DATABASE_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{Oracle.APP_USER_PASSWORD}}"
                    },
                    "ORACLE_DATABASE_CONNECT_STRING": {
                      "isOptional": false,
                      "defaultValue": "${{Oracle.RAILWAY_PRIVATE_DOMAIN}}:1521/FREEPDB1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "af188b51-9633-4c78-8639-caf3b596f3ae": {
                  "icon": "https://devicons.railway.com/oracle",
                  "name": "Oracle",
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/leoisadev1/mastra-template-oracledb",
                    "rootDirectory": "docker/oracle"
                  },
                  "variables": {
                    "APP_USER_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{APP_USER_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "af188b51-9633-4c78-8639-caf3b596f3ae": {
                      "mountPath": "/opt/oracle/oradata"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Mastra Server",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-05T06:14:05.332Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_48cefc1f8f8b4cea9cdb",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 248,
    "typical_build_seconds": 60,
    "typical_start_seconds": 61,
    "slowest_service": "Mastra Server"
  }
}
