{
  "manifest_version": "1.0.0",
  "template": {
    "id": "41083049-67fd-4d84-9e82-27088de858b5",
    "slug": "shiori-secure",
    "name": "Shiori",
    "description": "Private bookmarks with generated owner credentials",
    "url": "https://railway.com/deploy/shiori-secure",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-shiori"
    }
  },
  "services": [
    {
      "name": "shiori",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-shiori"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "shiori",
      "description": "Internal Shiori HTTP port.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SHIORI_DIR",
      "service": "shiori",
      "description": "Persistent Shiori data directory.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "SHIORI_ADMIN_USER",
      "service": "shiori",
      "description": "Initial owner username.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "SHIORI_ADMIN_PASSWORD",
      "service": "shiori",
      "description": "Generated owner password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SHIORI_HTTP_SECRET_KEY",
      "service": "shiori",
      "description": "Stable HTTP session signing key.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "shiori-secure"
      }
    },
    "cli": "railway deploy --template shiori-secure",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "41083049-67fd-4d84-9e82-27088de858b5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "e24a9b76-6504-4ea5-a9e6-e4283c66b7be": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-shiori/ee905c1c442c365e32729599b6791fbd28b097a2/assets/shiori-icon.png",
                  "name": "shiori",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-shiori",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Internal Shiori HTTP port.",
                      "defaultValue": "8080"
                    },
                    "SHIORI_DIR": {
                      "isOptional": false,
                      "description": "Persistent Shiori data directory.",
                      "defaultValue": "/data"
                    },
                    "SHIORI_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Initial owner username.",
                      "defaultValue": "admin"
                    },
                    "SHIORI_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated owner password.",
                      "defaultValue": "{{SHIORI_ADMIN_PASSWORD}}"
                    },
                    "SHIORI_HTTP_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Stable HTTP session signing key.",
                      "defaultValue": "{{SHIORI_HTTP_SECRET_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "e24a9b76-6504-4ea5-a9e6-e4283c66b7be": {
                      "mountPath": "/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "shiori",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T17:58:11.157Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_05a59641da494e528602",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 37,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "shiori"
  }
}
