{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9f3a1c01-fe28-4e9d-8dcd-88c789921f8c",
    "slug": "opensearch-analytics",
    "name": "Opensearch",
    "description": "Search engine and dashboards for querying your own data",
    "url": "https://railway.com/deploy/opensearch-analytics",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/opensearch-railway"
    }
  },
  "services": [
    {
      "name": "opensearch-dashboards",
      "source": {
        "repo": "https://github.com/gridalpha/opensearch-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "opensearch",
      "source": {
        "repo": "https://github.com/gridalpha/opensearch-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/share/opensearch/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "opensearch-dashboards",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "5601"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "opensearch-dashboards",
      "description": "Node heap ceiling",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=1024"
    },
    {
      "key": "OPENSEARCH_HOSTS",
      "service": "opensearch-dashboards",
      "description": "Private search node URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OPENSEARCH_PASSWORD",
      "service": "opensearch-dashboards",
      "description": "Service account password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OPENSEARCH_USERNAME",
      "service": "opensearch-dashboards",
      "description": "Service account Dashboards uses",
      "secret": false,
      "strategy": "default",
      "default": "kibanaserver"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "opensearch-dashboards",
      "description": "Selects the Dashboards image",
      "secret": false,
      "strategy": "default",
      "default": "dashboards/Dockerfile"
    },
    {
      "key": "DASHBOARDS_COOKIE_PASSWORD",
      "service": "opensearch-dashboards",
      "description": "Session cookie encryption key",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SNAPSHOT_RETENTION",
      "service": "opensearch",
      "description": "Snapshot retention window",
      "secret": false,
      "strategy": "default",
      "default": "14d"
    },
    {
      "key": "SNAPSHOT_S3_BUCKET",
      "service": "opensearch",
      "description": "Snapshot repository bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SNAPSHOT_S3_REGION",
      "service": "opensearch",
      "description": "Object storage region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SNAPSHOT_S3_ENDPOINT",
      "service": "opensearch",
      "description": "Object storage endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SNAPSHOT_SCHEDULE_CRON",
      "service": "opensearch",
      "description": "Daily snapshot time, UTC",
      "secret": false,
      "strategy": "default",
      "default": "0 2 * * *"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "opensearch",
      "description": "Selects the search node image",
      "secret": false,
      "strategy": "default",
      "default": "opensearch/Dockerfile"
    },
    {
      "key": "OPENSEARCH_ADMIN_USERNAME",
      "service": "opensearch",
      "description": "Admin username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "SNAPSHOT_S3_ACCESS_KEY_ID",
      "service": "opensearch",
      "description": "Object storage access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DASHBOARDS_SERVICE_PASSWORD",
      "service": "opensearch",
      "description": "Dashboards service account password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DISABLE_INSTALL_DEMO_CONFIG",
      "service": "opensearch",
      "description": "Never install demo certificates or users",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SNAPSHOT_S3_SECRET_ACCESS_KEY",
      "service": "opensearch",
      "description": "Object storage secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OPENSEARCH_INITIAL_ADMIN_PASSWORD",
      "service": "opensearch",
      "description": "Admin password, first boot only",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DISABLE_PERFORMANCE_ANALYZER_AGENT_CLI",
      "service": "opensearch",
      "description": "Skip the extra profiling JVM",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "opensearch-analytics"
      }
    },
    "cli": "railway deploy --template opensearch-analytics",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9f3a1c01-fe28-4e9d-8dcd-88c789921f8c",
            "serializedConfig": {
              "buckets": {
                "0e69fcb2-da2d-4001-a3bf-8e995446352d": {
                  "name": "opensearch-snapshots"
                }
              },
              "services": {
                "4482c22a-8e01-430c-860a-570551568bbc": {
                  "icon": "https://raw.githubusercontent.com/opensearch-project/OpenSearch-Dashboards/main/src/core/server/core_app/assets/logos/opensearch_center_mark_on_dark.svg",
                  "name": "opensearch-dashboards",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/status",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/opensearch-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "5601"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node heap ceiling",
                      "defaultValue": "--max-old-space-size=1024"
                    },
                    "OPENSEARCH_HOSTS": {
                      "isOptional": false,
                      "description": "Private search node URL",
                      "defaultValue": "http://${{opensearch.RAILWAY_PRIVATE_DOMAIN}}:9200"
                    },
                    "OPENSEARCH_PASSWORD": {
                      "isOptional": false,
                      "description": "Service account password",
                      "defaultValue": "${{opensearch.DASHBOARDS_SERVICE_PASSWORD}}"
                    },
                    "OPENSEARCH_USERNAME": {
                      "isOptional": false,
                      "description": "Service account Dashboards uses",
                      "defaultValue": "kibanaserver"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the Dashboards image",
                      "defaultValue": "dashboards/Dockerfile"
                    },
                    "DASHBOARDS_COOKIE_PASSWORD": {
                      "isOptional": false,
                      "description": "Session cookie encryption key",
                      "defaultValue": "{{DASHBOARDS_COOKIE_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5601": {
                        "port": 5601
                      }
                    }
                  }
                },
                "914382ec-dfa0-4178-a617-c07e5c3496c5": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/opensearch.svg",
                  "name": "opensearch",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/opensearch-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "SNAPSHOT_RETENTION": {
                      "description": "Snapshot retention window",
                      "defaultValue": "14d"
                    },
                    "SNAPSHOT_S3_BUCKET": {
                      "isOptional": false,
                      "description": "Snapshot repository bucket",
                      "defaultValue": "${{opensearch-snapshots.BUCKET}}"
                    },
                    "SNAPSHOT_S3_REGION": {
                      "isOptional": false,
                      "description": "Object storage region",
                      "defaultValue": "${{opensearch-snapshots.REGION}}"
                    },
                    "SNAPSHOT_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint",
                      "defaultValue": "${{opensearch-snapshots.ENDPOINT}}"
                    },
                    "SNAPSHOT_SCHEDULE_CRON": {
                      "description": "Daily snapshot time, UTC",
                      "defaultValue": "0 2 * * *"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the search node image",
                      "defaultValue": "opensearch/Dockerfile"
                    },
                    "OPENSEARCH_ADMIN_USERNAME": {
                      "description": "Admin username",
                      "defaultValue": "admin"
                    },
                    "SNAPSHOT_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Object storage access key",
                      "defaultValue": "${{opensearch-snapshots.ACCESS_KEY_ID}}"
                    },
                    "DASHBOARDS_SERVICE_PASSWORD": {
                      "isOptional": false,
                      "description": "Dashboards service account password",
                      "defaultValue": "{{DASHBOARDS_SERVICE_PASSWORD}}"
                    },
                    "DISABLE_INSTALL_DEMO_CONFIG": {
                      "isOptional": false,
                      "description": "Never install demo certificates or users",
                      "defaultValue": "true"
                    },
                    "SNAPSHOT_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Object storage secret key",
                      "defaultValue": "${{opensearch-snapshots.SECRET_ACCESS_KEY}}"
                    },
                    "OPENSEARCH_INITIAL_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Admin password, first boot only",
                      "defaultValue": "{{OPENSEARCH_INITIAL_ADMIN_PASSWORD}}"
                    },
                    "DISABLE_PERFORMANCE_ANALYZER_AGENT_CLI": {
                      "isOptional": false,
                      "description": "Skip the extra profiling JVM",
                      "defaultValue": "true"
                    }
                  },
                  "volumeMounts": {
                    "914382ec-dfa0-4178-a617-c07e5c3496c5": {
                      "mountPath": "/usr/share/opensearch/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "opensearch-dashboards",
      "method": "GET",
      "path": "/api/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T13:10:11.705Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_dc35d13adf8d4843a613",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 178
  }
}
