{
  "manifest_version": "1.0.0",
  "template": {
    "id": "51c52046-ec76-473b-85b2-a661ba73373f",
    "slug": "kothai-w-ollama",
    "name": "kothai w/ ollama",
    "description": "Save now, remember later and do more",
    "url": "https://railway.com/deploy/kothai-w-ollama",
    "upstream": {
      "repo_url": "https://github.com/ibrahimTareq/kothai"
    }
  },
  "services": [
    {
      "name": "kothai",
      "source": {
        "repo": "https://github.com/ibrahimTareq/kothai"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    },
    {
      "name": "ollama",
      "source": {
        "image": "ollama/ollama"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.ollama",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "KOTHAI_PASSWORD",
      "service": "kothai",
      "description": "Password to protect your instance",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "KOTHAI_AI_BASE_URL",
      "service": "kothai",
      "description": "The AI Ollama URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OLLAMA_HOST",
      "service": "ollama",
      "description": "The Ollama host",
      "secret": false,
      "strategy": "default",
      "default": "[::]:11434"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "kothai-w-ollama"
      }
    },
    "cli": "railway deploy --template kothai-w-ollama",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "51c52046-ec76-473b-85b2-a661ba73373f",
            "serializedConfig": {
              "services": {
                "75c4db21-28aa-4784-b3a4-1a9cd6f87c44": {
                  "icon": "https://github.com/IbrahimTareq/kothai/blob/main/public/logo.svg",
                  "name": "kothai",
                  "deploy": {
                    "healthcheckPath": "/api/health"
                  },
                  "source": {
                    "repo": "ibrahimTareq/kothai"
                  },
                  "variables": {
                    "KOTHAI_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to protect your instance",
                      "defaultValue": "{{KOTHAI_PASSWORD}}"
                    },
                    "KOTHAI_AI_BASE_URL": {
                      "isOptional": false,
                      "description": "The AI Ollama URL",
                      "defaultValue": "http://${{ollama.RAILWAY_PRIVATE_DOMAIN}}:11434/v1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "75c4db21-28aa-4784-b3a4-1a9cd6f87c44": {
                      "mountPath": "/app/data"
                    }
                  }
                },
                "a668f559-27b6-4391-bd2f-f67d18cde4a8": {
                  "name": "ollama",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'OLLAMA_HOST=127.0.0.1:11434 /bin/ollama serve & pid=$!; until OLLAMA_HOST=http://127.0.0.1:11434 /bin/ollama ps >/dev/null 2>&1; do sleep 1; done; OLLAMA_HOST=http://127.0.0.1:11434 /bin/ollama pull nomic-embed-text; OLLAMA_HOST=http://127.0.0.1:11434 /bin/ollama pull llama3.2:3b; kill $pid; wait $pid 2>/dev/null; exec /bin/ollama serve'"
                  },
                  "source": {
                    "image": "ollama/ollama"
                  },
                  "variables": {
                    "OLLAMA_HOST": {
                      "isOptional": false,
                      "description": "The Ollama host",
                      "defaultValue": "[::]:11434"
                    }
                  },
                  "volumeMounts": {
                    "a668f559-27b6-4391-bd2f-f67d18cde4a8": {
                      "mountPath": "/root/.ollama"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "kothai",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-18T10:14:39.389Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T08:14:32.096Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ff7e38d1dace46e89c84",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 111,
    "typical_build_seconds": 30,
    "typical_start_seconds": 12,
    "slowest_service": "kothai"
  }
}
