{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a5fee529-6fe3-48d7-9e58-9d66d55a5729",
    "slug": "calibre",
    "name": "Calibre",
    "description": "Your personal ebook library, self-hosted and accessible anywhere.",
    "url": "https://railway.com/deploy/calibre",
    "upstream": {
      "image": "linuxserver/calibre-web:latest"
    }
  },
  "services": [
    {
      "name": "calibre-web",
      "source": {
        "image": "linuxserver/calibre-web:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/config",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGID",
      "service": "calibre-web",
      "description": "Group ID used by LinuxServer for Calibre-Web files",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "PORT",
      "service": "calibre-web",
      "description": "Railway public HTTP target port; Calibre-Web listens on 8083",
      "secret": false,
      "strategy": "default",
      "default": "8083"
    },
    {
      "key": "PUID",
      "service": "calibre-web",
      "description": "User ID used by LinuxServer for Calibre-Web files",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "DOCKER_MODS",
      "service": "calibre-web",
      "description": "Add Calibre ebook conversion binaries; x86-64 only",
      "secret": false,
      "strategy": "default",
      "default": "linuxserver/mods:universal-calibre"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "calibre-web",
      "description": "Run container as root so Railway-mounted volume is writable",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "OAUTHLIB_RELAX_TOKEN_SCOPE",
      "service": "calibre-web",
      "description": "Optional compatibility setting for Google OAuth",
      "secret": true,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "calibre"
      }
    },
    "cli": "railway deploy --template calibre",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a5fee529-6fe3-48d7-9e58-9d66d55a5729",
            "serializedConfig": {
              "services": {
                "b4f20b75-e83b-4fbd-93cc-d3b869258582": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/calibre-web.svg",
                  "name": "calibre-web",
                  "source": {
                    "image": "linuxserver/calibre-web:latest"
                  },
                  "variables": {
                    "PGID": {
                      "description": "Group ID used by LinuxServer for Calibre-Web files",
                      "defaultValue": "1000"
                    },
                    "PORT": {
                      "description": "Railway public HTTP target port; Calibre-Web listens on 8083",
                      "defaultValue": "8083"
                    },
                    "PUID": {
                      "description": "User ID used by LinuxServer for Calibre-Web files",
                      "defaultValue": "1000"
                    },
                    "DOCKER_MODS": {
                      "description": "Add Calibre ebook conversion binaries; x86-64 only",
                      "defaultValue": "linuxserver/mods:universal-calibre"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run container as root so Railway-mounted volume is writable",
                      "defaultValue": "0"
                    },
                    "OAUTHLIB_RELAX_TOKEN_SCOPE": {
                      "description": "Optional compatibility setting for Google OAuth",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8083": {
                        "port": 8083
                      }
                    }
                  },
                  "volumeMounts": {
                    "b4f20b75-e83b-4fbd-93cc-d3b869258582": {
                      "mountPath": "/config"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T13:11:22.996Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_455cdff8ea6447f185cf",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 116,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "calibre-web"
  }
}
