{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e4438db6-80cb-4344-8bc1-d15f885c38e5",
    "slug": "kotaemon",
    "name": "kotaemon",
    "description": "Self-hosted RAG chat over your documents, with a real admin password",
    "url": "https://railway.com/deploy/kotaemon",
    "upstream": {
      "image": "ghcr.io/youssefsiam38/kotaemon-railway:1.0.0"
    }
  },
  "services": [
    {
      "name": "kotaemon",
      "source": {
        "image": "ghcr.io/youssefsiam38/kotaemon-railway:1.0.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/ktem_app_data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "kotaemon",
      "description": "Timezone used for timestamps.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "kotaemon",
      "description": "Port the interface listens on. Railway probes its healthcheck here, so keep it equal to the domain's target port.",
      "secret": false,
      "strategy": "default",
      "default": "7860"
    },
    {
      "key": "KOTAEMON_ADMIN_PASSWORD",
      "service": "kotaemon",
      "description": "Password for that account. kotaemon would otherwise create it with the password \"admin\", which its own README publishes. Read on the first start only; change it later in the app.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "KOTAEMON_ADMIN_USERNAME",
      "service": "kotaemon",
      "description": "Name of the first administrator account.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "kotaemon",
      "description": "How long Railway waits for the interface to answer. Importing the retrieval stack takes tens of seconds on a cold container.",
      "secret": false,
      "strategy": "default",
      "default": "600"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "kotaemon"
      }
    },
    "cli": "railway deploy --template kotaemon",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e4438db6-80cb-4344-8bc1-d15f885c38e5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "341332e3-9f8a-4bff-9704-26ad11a26a1d": {
                  "icon": null,
                  "name": "kotaemon",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/youssefsiam38/kotaemon-railway:1.0.0"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone used for timestamps.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the interface listens on. Railway probes its healthcheck here, so keep it equal to the domain's target port.",
                      "defaultValue": "7860"
                    },
                    "KOTAEMON_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for that account. kotaemon would otherwise create it with the password \"admin\", which its own README publishes. Read on the first start only; change it later in the app.",
                      "defaultValue": "{{KOTAEMON_ADMIN_PASSWORD}}"
                    },
                    "KOTAEMON_ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "Name of the first administrator account.",
                      "defaultValue": "admin"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "How long Railway waits for the interface to answer. Importing the retrieval stack takes tens of seconds on a cold container.",
                      "defaultValue": "600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:7860": {
                        "port": 7860
                      }
                    }
                  },
                  "volumeMounts": {
                    "341332e3-9f8a-4bff-9704-26ad11a26a1d": {
                      "mountPath": "/app/ktem_app_data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "kotaemon",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-12T16:14:42.609Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-12T15:46:28.764Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8059b563a7e54d9d9e7b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 263,
    "typical_build_seconds": 0,
    "typical_start_seconds": 214,
    "slowest_service": "kotaemon"
  }
}
