{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5fb5e241-cd6f-43a8-a6ef-9ac6ce866911",
    "slug": "manticore-1",
    "name": "Manticore Search",
    "description": "Manticore Search 29.9 full-text and vector search with built-in auth.",
    "url": "https://railway.com/deploy/manticore-1",
    "upstream": {
      "image": "manticoresearch/manticore:29.9.0"
    }
  },
  "services": [
    {
      "name": "manticore",
      "source": {
        "image": "manticoresearch/manticore:29.9.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/manticore",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "manticore",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "9308"
    },
    {
      "key": "searchd_auth",
      "service": "manticore",
      "description": "Provide a value for searchd_auth.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "MANTICORE_URL",
      "service": "manticore",
      "description": "Provide a value for MANTICORE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MANTICORE_ADMIN_USER",
      "service": "manticore",
      "description": "Provide a value for MANTICORE_ADMIN_USER.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "MANTICORE_ADMIN_PASSWORD",
      "service": "manticore",
      "description": "Provide a value for MANTICORE_ADMIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MANTICORE_PRIVATE_HTTP_URL",
      "service": "manticore",
      "description": "Provide a value for MANTICORE_PRIVATE_HTTP_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MANTICORE_PRIVATE_MYSQL_HOST",
      "service": "manticore",
      "description": "Provide a value for MANTICORE_PRIVATE_MYSQL_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "manticore",
      "description": "Provide a value for RAILWAY_DEPLOYMENT_DRAINING_SECONDS.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "manticore-1"
      }
    },
    "cli": "railway deploy --template manticore-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5fb5e241-cd6f-43a8-a6ef-9ac6ce866911",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "a1b39146-1e18-4e64-8c7e-632e9dafd6a3": {
                  "icon": "https://github.com/manticoresoftware.png",
                  "name": "manticore",
                  "deploy": {
                    "startCommand": "bash -c 'docker-entrypoint.sh searchd -c /etc/manticoresearch/manticore.conf.sh --nodetach & pid=$!; trap \"kill -TERM $pid\" TERM INT; for i in $(seq 90); do [ -s /run/manticore/searchd.pid ] && break; sleep 1; done; sleep 2; if ! grep -qs \"$MANTICORE_ADMIN_USER\" /var/lib/manticore/auth.json; then printf \"%s\\n%s\\n%s\\n\" \"$MANTICORE_ADMIN_USER\" \"$MANTICORE_ADMIN_PASSWORD\" \"$MANTICORE_ADMIN_PASSWORD\" | gosu manticore searchd -c /etc/manticoresearch/manticore.conf.sh --auth-non-interactive && echo \"created admin user $MANTICORE_ADMIN_USER\"; fi; wait $pid'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "manticoresearch/manticore:29.9.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "9308"
                    },
                    "searchd_auth": {
                      "isOptional": false,
                      "defaultValue": "1"
                    },
                    "MANTICORE_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MANTICORE_ADMIN_USER": {
                      "isOptional": false,
                      "defaultValue": "admin"
                    },
                    "MANTICORE_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{MANTICORE_ADMIN_PASSWORD}}"
                    },
                    "MANTICORE_PRIVATE_HTTP_URL": {
                      "isOptional": false,
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:9308"
                    },
                    "MANTICORE_PRIVATE_MYSQL_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9308": {
                        "port": 9308
                      }
                    }
                  },
                  "volumeMounts": {
                    "a1b39146-1e18-4e64-8c7e-632e9dafd6a3": {
                      "mountPath": "/var/lib/manticore"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-24T04:14:44.625Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-24T01:18:55.276Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ba158085e483476b9610",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 81,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "manticore"
  }
}
