{
  "manifest_version": "1.0.0",
  "template": {
    "id": "854e41ac-1e0f-472d-b43a-3f118f51c8d8",
    "slug": "raneto-private-knowledge-base",
    "name": "Raneto Private Knowledge Base",
    "description": "Markdown knowledge base with browser editing and persistent pages.",
    "url": "https://railway.com/deploy/raneto-private-knowledge-base",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "services": [
    {
      "name": "raneto",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "app",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "raneto",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OWNER_AUTH",
      "service": "raneto",
      "description": "Owner auth for raneto. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OWNER_SCOPE",
      "service": "raneto",
      "description": "Owner scope for raneto. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "all"
    },
    {
      "key": "UPSTREAM_HOST",
      "service": "raneto",
      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UPSTREAM_PORT",
      "service": "raneto",
      "description": "Upstream port for raneto. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ACCESS_PASSWORD",
      "service": "raneto",
      "description": "Generated access password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "raneto",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "shared/round10-gateway/Dockerfile"
    },
    {
      "key": "HOST",
      "service": "app",
      "description": "HTTP bind address. Keep 0.0.0.0 so Railway can reach the service.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PORT",
      "service": "app",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "NODE_ENV",
      "service": "app",
      "description": "Node.js runtime mode. Keep production for hosted deployments.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "PUBLIC_URL",
      "service": "app",
      "description": "Public url resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SITE_TITLE",
      "service": "app",
      "description": "Site title for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "My Knowledge Base"
    },
    {
      "key": "SESSION_SECRET",
      "service": "app",
      "description": "Generated session secret. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RANETO_PASSWORD",
      "service": "app",
      "description": "Generated raneto password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RANETO_USERNAME",
      "service": "app",
      "description": "Raneto username for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "owner"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "app",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/round10/raneto/Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "raneto-private-knowledge-base"
      }
    },
    "cli": "railway deploy --template raneto-private-knowledge-base",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "854e41ac-1e0f-472d-b43a-3f118f51c8d8",
            "serializedConfig": {
              "services": {
                "077b144d-0e1a-5a65-80aa-e5c01f08192b": {
                  "name": "raneto",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "shared/round10-gateway/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/unique-template-drafts"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8080"
                    },
                    "OWNER_AUTH": {
                      "isOptional": false,
                      "description": "Owner auth for raneto. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "true"
                    },
                    "OWNER_SCOPE": {
                      "isOptional": false,
                      "description": "Owner scope for raneto. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "all"
                    },
                    "UPSTREAM_HOST": {
                      "isOptional": false,
                      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{app.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "UPSTREAM_PORT": {
                      "isOptional": false,
                      "description": "Upstream port for raneto. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "8080"
                    },
                    "ACCESS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated access password. Keep private and preserve with backups.",
                      "defaultValue": "{{ACCESS_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "shared/round10-gateway/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "82726986-6afa-5f12-ba80-b259abbcf0a7": {
                  "name": "app",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/round10/raneto/Dockerfile"
                  },
                  "deploy": {
                    "requiredMountPath": "/data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/unique-template-drafts"
                  },
                  "variables": {
                    "HOST": {
                      "isOptional": false,
                      "description": "HTTP bind address. Keep 0.0.0.0 so Railway can reach the service.",
                      "defaultValue": "0.0.0.0"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8080"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Node.js runtime mode. Keep production for hosted deployments.",
                      "defaultValue": "production"
                    },
                    "PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "https://${{raneto.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SITE_TITLE": {
                      "isOptional": false,
                      "description": "Site title for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "My Knowledge Base"
                    },
                    "SESSION_SECRET": {
                      "isOptional": false,
                      "description": "Generated session secret. Keep private and preserve with backups.",
                      "defaultValue": "{{SESSION_SECRET}}"
                    },
                    "RANETO_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated raneto password. Keep private and preserve with backups.",
                      "defaultValue": "{{RANETO_PASSWORD}}"
                    },
                    "RANETO_USERNAME": {
                      "isOptional": false,
                      "description": "Raneto username for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "owner"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/round10/raneto/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "37bc6bd2-0c0e-51a4-9c99-cfa3cbed2f7f": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "raneto",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T08:23:56.663Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_eba14684691948b0b6cb",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 110,
    "typical_build_seconds": 21,
    "typical_start_seconds": 10,
    "slowest_service": "app"
  }
}
