{
  "manifest_version": "1.0.0",
  "template": {
    "id": "12bc0ddc-a2eb-44f9-97b8-1a8d673cd897",
    "slug": "elasticsearch",
    "name": "Elasticsearch",
    "description": "Elastic is a scalable search and analytics engine for fast data queries",
    "url": "https://railway.com/deploy/elasticsearch",
    "upstream": {
      "repo_url": "https://github.com/railwayapp-templates/elasticsearch"
    }
  },
  "services": [
    {
      "name": "Elasticsearch",
      "source": {
        "repo": "https://github.com/railwayapp-templates/elasticsearch"
      },
      "needs_volume": true,
      "volume_mount_path": "/esdata",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Elasticsearch",
      "description": "Port that Elasticsearch will run on",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "ES_JAVA_OPTS",
      "service": "Elasticsearch",
      "description": "The minimum and max heap size that Elasticsearch can use",
      "secret": false,
      "strategy": "default",
      "default": "-Xms500m -Xmx4g"
    },
    {
      "key": "ELASTIC_PASSWORD",
      "service": "Elasticsearch",
      "description": "Password for Elasticsearch",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ELASTIC_USERNAME",
      "service": "Elasticsearch",
      "description": "Username for Elasticsearch",
      "secret": false,
      "strategy": "default",
      "default": "elastic"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "elasticsearch"
      }
    },
    "cli": "railway deploy --template elasticsearch",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "12bc0ddc-a2eb-44f9-97b8-1a8d673cd897",
            "serializedConfig": {
              "services": {
                "352d761f-76ea-4a32-80b0-c843c79c6dda": {
                  "icon": "https://cdn.worldvectorlogo.com/logos/elasticsearch.svg",
                  "name": "Elasticsearch",
                  "deploy": {
                    "healthcheckPath": "/_cluster/health"
                  },
                  "source": {
                    "repo": "railwayapp-templates/elasticsearch",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port that Elasticsearch will run on",
                      "defaultValue": "9200"
                    },
                    "ES_JAVA_OPTS": {
                      "description": "The minimum and max heap size that Elasticsearch can use",
                      "defaultValue": "-Xms500m -Xmx4g"
                    },
                    "ELASTIC_PASSWORD": {
                      "description": "Password for Elasticsearch",
                      "defaultValue": "{{ELASTIC_PASSWORD}}"
                    },
                    "ELASTIC_USERNAME": {
                      "description": "Username for Elasticsearch",
                      "defaultValue": "elastic"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "352d761f-76ea-4a32-80b0-c843c79c6dda": {
                      "mountPath": "/esdata"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Elasticsearch",
      "method": "GET",
      "path": "/_cluster/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T04:21:06.983Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_35ec28473f4b44d7ac3a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 162,
    "typical_build_seconds": 52,
    "typical_start_seconds": 41,
    "slowest_service": "Elasticsearch"
  }
}
