{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7489dd50-3ada-449e-90f8-45b509d053ba",
    "slug": "elasticsearch-1",
    "name": "Elasticsearch",
    "description": "Advanced search and analytics with Elasticsearch and persistent storage.",
    "url": "https://railway.com/deploy/elasticsearch-1",
    "upstream": {
      "image": "elasticsearch:9.5.2"
    }
  },
  "services": [
    {
      "name": "elasticsearch",
      "source": {
        "image": "elasticsearch:9.5.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/share/elasticsearch/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "elasticsearch",
      "description": "Railway public HTTP target port",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "discovery.type",
      "service": "elasticsearch",
      "description": "Run Elasticsearch as a standalone single-node cluster",
      "secret": false,
      "strategy": "default",
      "default": "single-node"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "elasticsearch",
      "description": "Start as root temporarily so Railway volume permissions can be prepared",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "ELASTIC_PASSWORD",
      "service": "elasticsearch",
      "description": "Password for the built-in elastic superuser",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "xpack.security.enabled",
      "service": "elasticsearch",
      "description": "Enable Elasticsearch authentication",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "xpack.security.http.ssl.enabled",
      "service": "elasticsearch",
      "description": "Railway terminates public HTTPS",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "xpack.security.autoconfiguration.enabled",
      "service": "elasticsearch",
      "description": "Disable automatic TLS/enrollment setup",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "elasticsearch-1"
      }
    },
    "cli": "railway deploy --template elasticsearch-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7489dd50-3ada-449e-90f8-45b509d053ba",
            "serializedConfig": {
              "services": {
                "8beac2ce-2693-428c-8886-ea1589c5259d": {
                  "icon": "https://www.gravatar.com/avatar/dd9d954997353b37b4c2684f478192d3.svg",
                  "name": "elasticsearch",
                  "deploy": {
                    "startCommand": "/bin/bash -c 'echo \"=== identity ===\"; id; echo \"=== tools ===\"; command -v su || true; command -v setpriv || true; command -v gosu || true; command -v su-exec || true; command -v chroot || true; command -v tini || true; sleep 3600'"
                  },
                  "source": {
                    "image": "elasticsearch:9.5.2"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Railway public HTTP target port",
                      "defaultValue": "9200"
                    },
                    "discovery.type": {
                      "description": "Run Elasticsearch as a standalone single-node cluster",
                      "defaultValue": "single-node"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Start as root temporarily so Railway volume permissions can be prepared",
                      "defaultValue": "0"
                    },
                    "ELASTIC_PASSWORD": {
                      "description": "Password for the built-in elastic superuser",
                      "defaultValue": "{{ELASTIC_PASSWORD}}"
                    },
                    "xpack.security.enabled": {
                      "description": "Enable Elasticsearch authentication",
                      "defaultValue": "true"
                    },
                    "xpack.security.http.ssl.enabled": {
                      "description": "Railway terminates public HTTPS",
                      "defaultValue": "false"
                    },
                    "xpack.security.autoconfiguration.enabled": {
                      "description": "Disable automatic TLS/enrollment setup",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9200": {
                        "port": 9200
                      }
                    }
                  },
                  "volumeMounts": {
                    "8beac2ce-2693-428c-8886-ea1589c5259d": {
                      "mountPath": "/usr/share/elasticsearch/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T10:14:42.516Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T13:00:30.418Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_872513a9d6224024a004",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 54,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "elasticsearch"
  }
}
