{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3e8fbc1c-7332-4d64-a4f4-094f1f4fe058",
    "slug": "opensearch-or-just-updated-it-boots-and-",
    "name": "OpenSearch | (Just Updated) It Boots, And Your Index Survives Redeploys",
    "description": "Single-node OpenSearch that boots, keeps its index, and needs a password",
    "url": "https://railway.com/deploy/opensearch-or-just-updated-it-boots-and-",
    "upstream": {
      "image": "ghcr.io/bon5co/opensearch-railway@sha256:37c828b0f49a76fcf880928b417fdb7661562ad67eeef700684fc0ec76d41820"
    }
  },
  "services": [
    {
      "name": "opensearch",
      "source": {
        "image": "ghcr.io/bon5co/opensearch-railway@sha256:37c828b0f49a76fcf880928b417fdb7661562ad67eeef700684fc0ec76d41820"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/share/opensearch/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "opensearch",
      "description": "Port OpenSearch listens on. Leave at 9200.",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "OPENSEARCH_JAVA_OPTS",
      "service": "opensearch",
      "description": "JVM heap. 512m keeps the container near 900 MiB so it fits a 1 GB plan; raise it with the plan for real indexing volume.",
      "secret": false,
      "strategy": "default",
      "default": "-Xms512m -Xmx512m"
    },
    {
      "key": "OPENSEARCH_INITIAL_ADMIN_PASSWORD",
      "service": "opensearch",
      "description": "Password for the 'admin' user. Must contain upper, lower, digit and a special character; the container refuses to start without it.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "opensearch-or-just-updated-it-boots-and-"
      }
    },
    "cli": "railway deploy --template opensearch-or-just-updated-it-boots-and-",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3e8fbc1c-7332-4d64-a4f4-094f1f4fe058",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0837a2a0-ac47-4c1a-ad1f-f01f5b7f5974": {
                  "icon": "https://opensearch.org/wp-content/uploads/2025/01/opensearch_logo_default.svg",
                  "name": "opensearch",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/_plugins/_security/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/opensearch-railway@sha256:37c828b0f49a76fcf880928b417fdb7661562ad67eeef700684fc0ec76d41820"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port OpenSearch listens on. Leave at 9200.",
                      "defaultValue": "9200"
                    },
                    "OPENSEARCH_JAVA_OPTS": {
                      "isOptional": false,
                      "description": "JVM heap. 512m keeps the container near 900 MiB so it fits a 1 GB plan; raise it with the plan for real indexing volume.",
                      "defaultValue": "-Xms512m -Xmx512m"
                    },
                    "OPENSEARCH_INITIAL_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the 'admin' user. Must contain upper, lower, digit and a special character; the container refuses to start without it.",
                      "defaultValue": "{{OPENSEARCH_INITIAL_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9200": {
                        "port": 9200
                      }
                    }
                  },
                  "volumeMounts": {
                    "0837a2a0-ac47-4c1a-ad1f-f01f5b7f5974": {
                      "mountPath": "/usr/share/opensearch/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "opensearch",
      "method": "GET",
      "path": "/_plugins/_security/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T16:14:44.435Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T15:00:32.985Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_161d9a5e4f1a402a9bfd",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 82,
    "typical_build_seconds": 0,
    "typical_start_seconds": 63,
    "slowest_service": "opensearch"
  }
}
