{
  "manifest_version": "1.0.0",
  "template": {
    "id": "10021176-7a1d-4704-9000-b7d33fe27886",
    "slug": "kroki-secure",
    "name": "Kroki",
    "description": "Authenticated text-to-diagram rendering API",
    "url": "https://railway.com/deploy/kroki-secure",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-kroki"
    }
  },
  "services": [
    {
      "name": "proxy",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-kroki"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "kroki",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-kroki"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "proxy",
      "description": "Authenticated proxy port used by the Railway public domain.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "KROKI_URL",
      "service": "proxy",
      "description": "Private Kroki gateway origin. Keep this service reference unchanged.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BASIC_AUTH_USER",
      "service": "proxy",
      "description": "HTTP Basic username for rendering endpoints.",
      "secret": false,
      "strategy": "default",
      "default": "kroki"
    },
    {
      "key": "BASIC_AUTH_PASSWORD",
      "service": "proxy",
      "description": "Generated HTTP Basic password for rendering endpoints.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "kroki",
      "description": "Kroki HTTP port on Railway private networking.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "kroki-secure"
      }
    },
    "cli": "railway deploy --template kroki-secure",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "10021176-7a1d-4704-9000-b7d33fe27886",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0eb7ba75-84e0-4f2c-ba1b-64ce63efe2ed": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-kroki/de531b36f594c49909e948caa81ff438ac4971f1/assets/kroki-icon.png",
                  "name": "proxy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-kroki",
                    "rootDirectory": "/proxy"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Authenticated proxy port used by the Railway public domain.",
                      "defaultValue": "8080"
                    },
                    "KROKI_URL": {
                      "isOptional": false,
                      "description": "Private Kroki gateway origin. Keep this service reference unchanged.",
                      "defaultValue": "http://${{kroki.RAILWAY_PRIVATE_DOMAIN}}:8000"
                    },
                    "BASIC_AUTH_USER": {
                      "isOptional": false,
                      "description": "HTTP Basic username for rendering endpoints.",
                      "defaultValue": "kroki"
                    },
                    "BASIC_AUTH_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated HTTP Basic password for rendering endpoints.",
                      "defaultValue": "{{BASIC_AUTH_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "4042e0f2-a642-4176-8df8-bdf3941f4f5a": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-kroki/de531b36f594c49909e948caa81ff438ac4971f1/assets/kroki-icon.png",
                  "name": "kroki",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-kroki",
                    "rootDirectory": "/kroki"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Kroki HTTP port on Railway private networking.",
                      "defaultValue": "8000"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "proxy",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T18:00:37.855Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_3a8318de469740ce9059",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 132,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "proxy"
  }
}
