{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f34b22ca-ea1a-44a0-8acb-cdee2bc294af",
    "slug": "typesense-instant-search-algolia-alterna",
    "name": "Typesense - Instant Search Algolia Alternative",
    "description": "Typo-tolerant instant search engine. Self-hosted Algolia alternative.",
    "url": "https://railway.com/deploy/typesense-instant-search-algolia-alterna",
    "upstream": {
      "image": "typesense/typesense:30.2"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "typesense",
      "source": {
        "image": "typesense/typesense:30.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "typesense",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "TYPESENSE_API_KEY",
      "service": "typesense",
      "description": "Provide a value for TYPESENSE_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "typesense-instant-search-algolia-alterna"
      }
    },
    "cli": "railway deploy --template typesense-instant-search-algolia-alterna",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f34b22ca-ea1a-44a0-8acb-cdee2bc294af",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "709eda38-3970-482d-b6a2-dd1fd874363d": {
                  "icon": null,
                  "name": "typesense",
                  "deploy": {
                    "startCommand": "/bin/sh -c '/opt/typesense-server --data-dir=/data --thread-pool-size=8 --api-port=${PORT:-8108} --api-key=${TYPESENSE_API_KEY}'",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "typesense/typesense:30.2"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "{{PORT}}"
                    },
                    "TYPESENSE_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{TYPESENSE_API_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "709eda38-3970-482d-b6a2-dd1fd874363d": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "typesense",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-06T23:54:14.295Z",
  "generator_version": "0.1.0"
}
