{
  "manifest_version": "1.0.0",
  "template": {
    "id": "998b8632-be2d-42e7-b9c7-c1390a14937d",
    "slug": "kitchenowl-household",
    "name": "KitchenOwl household",
    "description": "Private household groceries, recipes, and meal planning.",
    "url": "https://railway.com/deploy/kitchenowl-household",
    "upstream": {
      "image": "caddy:2.11.4-alpine@sha256:5f5c8640aae01df9654968d946d8f1a56c497f1dd5c5cda4cf95ab7c14d58648"
    }
  },
  "services": [
    {
      "name": "KitchenOwl",
      "source": {
        "image": "tombursch/kitchenowl:v0.7.10@sha256:bd821a41b8cb27fd7fcf429acd1fc67e9f889485a2cd1193d68c2d804a8e1bef"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "KitchenOwl Gateway",
      "source": {
        "image": "caddy:2.11.4-alpine@sha256:5f5c8640aae01df9654968d946d8f1a56c497f1dd5c5cda4cf95ab7c14d58648"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "KitchenOwl",
      "description": "Private KitchenOwl HTTP listener.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "FRONT_URL",
      "service": "KitchenOwl",
      "description": "Public gateway origin used by KitchenOwl.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "JWT_SECRET_KEY",
      "service": "KitchenOwl",
      "description": "Generated key used to sign KitchenOwl sessions.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "COLLECT_METRICS",
      "service": "KitchenOwl",
      "description": "Disables optional upstream usage metrics.",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "EMAIL_MANDATORY",
      "service": "KitchenOwl",
      "description": "Allows username-only owner registration.",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "OPEN_REGISTRATION",
      "service": "KitchenOwl",
      "description": "Keeps public account registration disabled.",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "PORT",
      "service": "KitchenOwl Gateway",
      "description": "Public onboarding gateway listener.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "UPSTREAM",
      "service": "KitchenOwl Gateway",
      "description": "Private KitchenOwl HTTP endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GATEWAY_CONFIG",
      "service": "KitchenOwl Gateway",
      "description": "Pinned policy protecting only the onboarding endpoint.",
      "secret": false,
      "strategy": "default",
      "default": ":8080 {\n  handle /healthz {\n    rewrite * /api/health/8M4F88S8ooi4sMbLBfkkV7ctWwgibW6V\n    reverse_proxy http://__UPSTREAM__\n  }\n  @onboarding path /api/onboarding /api/onboarding/*\n  basic_auth @onboarding {\n    __USERNAME__ __PASSWORD_HASH__\n  }\n  handle {\n    reverse_proxy http://__UPSTREAM__\n  }\n}"
    },
    {
      "key": "SETUP_PASSWORD",
      "service": "KitchenOwl Gateway",
      "description": "Generated password protecting first-owner onboarding.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SETUP_USERNAME",
      "service": "KitchenOwl Gateway",
      "description": "Username protecting first-owner onboarding.",
      "secret": false,
      "strategy": "default",
      "default": "kitchenowl"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "kitchenowl-household"
      }
    },
    "cli": "railway deploy --template kitchenowl-household",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "998b8632-be2d-42e7-b9c7-c1390a14937d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9db961bc-c9d3-473d-9256-1e5cf4ced841": {
                  "icon": null,
                  "name": "KitchenOwl",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health/8M4F88S8ooi4sMbLBfkkV7ctWwgibW6V",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "tombursch/kitchenowl:v0.7.10@sha256:bd821a41b8cb27fd7fcf429acd1fc67e9f889485a2cd1193d68c2d804a8e1bef"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Private KitchenOwl HTTP listener.",
                      "defaultValue": "8080"
                    },
                    "FRONT_URL": {
                      "isOptional": false,
                      "description": "Public gateway origin used by KitchenOwl.",
                      "defaultValue": "https://${{KitchenOwl Gateway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "JWT_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Generated key used to sign KitchenOwl sessions.",
                      "defaultValue": "{{JWT_SECRET_KEY}}"
                    },
                    "COLLECT_METRICS": {
                      "isOptional": false,
                      "description": "Disables optional upstream usage metrics.",
                      "defaultValue": "False"
                    },
                    "EMAIL_MANDATORY": {
                      "isOptional": false,
                      "description": "Allows username-only owner registration.",
                      "defaultValue": "False"
                    },
                    "OPEN_REGISTRATION": {
                      "isOptional": false,
                      "description": "Keeps public account registration disabled.",
                      "defaultValue": "False"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "9db961bc-c9d3-473d-9256-1e5cf4ced841": {
                      "sizeMB": 5000,
                      "mountPath": "/data"
                    }
                  }
                },
                "b5c61a6c-6902-4db2-9553-45836f1a5c78": {
                  "icon": null,
                  "name": "KitchenOwl Gateway",
                  "deploy": {
                    "startCommand": "/bin/sh -ec 'password_hash=\"$(caddy hash-password --plaintext \"$SETUP_PASSWORD\")\"; printf \"%s\\n\" \"$GATEWAY_CONFIG\" | sed -e \"s|__USERNAME__|$SETUP_USERNAME|g\" -e \"s|__PASSWORD_HASH__|$password_hash|g\" -e \"s|__UPSTREAM__|$UPSTREAM|g\" >/tmp/Caddyfile; exec caddy run --config /tmp/Caddyfile --adapter caddyfile'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "caddy:2.11.4-alpine@sha256:5f5c8640aae01df9654968d946d8f1a56c497f1dd5c5cda4cf95ab7c14d58648"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public onboarding gateway listener.",
                      "defaultValue": "8080"
                    },
                    "UPSTREAM": {
                      "isOptional": false,
                      "description": "Private KitchenOwl HTTP endpoint.",
                      "defaultValue": "${{KitchenOwl.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "GATEWAY_CONFIG": {
                      "isOptional": false,
                      "description": "Pinned policy protecting only the onboarding endpoint.",
                      "defaultValue": ":8080 {\n  handle /healthz {\n    rewrite * /api/health/8M4F88S8ooi4sMbLBfkkV7ctWwgibW6V\n    reverse_proxy http://__UPSTREAM__\n  }\n  @onboarding path /api/onboarding /api/onboarding/*\n  basic_auth @onboarding {\n    __USERNAME__ __PASSWORD_HASH__\n  }\n  handle {\n    reverse_proxy http://__UPSTREAM__\n  }\n}"
                    },
                    "SETUP_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password protecting first-owner onboarding.",
                      "defaultValue": "{{SETUP_PASSWORD}}"
                    },
                    "SETUP_USERNAME": {
                      "isOptional": false,
                      "description": "Username protecting first-owner onboarding.",
                      "defaultValue": "kitchenowl"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "KitchenOwl Gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T19:08:34.691Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_57328bc1bde844fe9b86",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 115,
    "typical_build_seconds": 0,
    "typical_start_seconds": 36,
    "slowest_service": "KitchenOwl Gateway"
  }
}
