{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f9b3bf8f-d21c-4591-baab-7fab8a7c264d",
    "slug": "shiori-bookmarks",
    "name": "Shiori bookmarks",
    "description": "Private Shiori bookmarks with generated owner credentials.",
    "url": "https://railway.com/deploy/shiori-bookmarks",
    "upstream": {
      "repo_url": "https://github.com/tech-progress/railway-template-shiori"
    }
  },
  "services": [
    {
      "name": "Shiori",
      "source": {
        "repo": "https://github.com/tech-progress/railway-template-shiori"
      },
      "needs_volume": true,
      "volume_mount_path": "/shiori",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Shiori",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SHIORI_DIR",
      "service": "Shiori",
      "description": "Provide a value for SHIORI_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/shiori"
    },
    {
      "key": "SHIORI_PASSWORD",
      "service": "Shiori",
      "description": "Generated owner account password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SHIORI_USERNAME",
      "service": "Shiori",
      "description": "Generated owner account username.",
      "secret": false,
      "strategy": "default",
      "default": "owner"
    },
    {
      "key": "SHIORI_HTTP_SECRET_KEY",
      "service": "Shiori",
      "description": "Generated persistent session-signing secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "shiori-bookmarks"
      }
    },
    "cli": "railway deploy --template shiori-bookmarks",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f9b3bf8f-d21c-4591-baab-7fab8a7c264d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b39120f2-f7f0-4629-b65f-f5082c4774b6": {
                  "icon": null,
                  "name": "Shiori",
                  "build": {
                    "builder": "DOCKERFILE",
                    "watchPatterns": [
                      "/Dockerfile",
                      "/railway-entrypoint.sh"
                    ],
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "tech-progress/railway-template-shiori",
                    "branch": "release-v1",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "SHIORI_DIR": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/shiori"
                    },
                    "SHIORI_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated owner account password.",
                      "defaultValue": "{{SHIORI_PASSWORD}}"
                    },
                    "SHIORI_USERNAME": {
                      "isOptional": false,
                      "description": "Generated owner account username.",
                      "defaultValue": "owner"
                    },
                    "SHIORI_HTTP_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Generated persistent session-signing secret.",
                      "defaultValue": "{{SHIORI_HTTP_SECRET_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      },
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "b39120f2-f7f0-4629-b65f-f5082c4774b6": {
                      "sizeMB": 5000,
                      "mountPath": "/shiori"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "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-10T19:19:36.039Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2590fb80fdeb4e83b6f1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 113,
    "typical_build_seconds": 20,
    "typical_start_seconds": 10,
    "slowest_service": "Shiori"
  }
}
