{
  "manifest_version": "1.0.0",
  "template": {
    "id": "69353717-3205-464a-ab3d-ee8920d6c18b",
    "slug": "gotenberg-pdf",
    "name": "Gotenberg",
    "description": "API for converting HTML, Markdown, URLs and Office documents to PDF",
    "url": "https://railway.com/deploy/gotenberg-pdf",
    "upstream": {
      "image": "gotenberg/gotenberg:latest"
    }
  },
  "services": [
    {
      "name": "gotenberg",
      "source": {
        "image": "gotenberg/gotenberg:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "gotenberg",
      "description": "Timezone for rendered document timestamps",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "gotenberg",
      "description": "HTTP port the API listens on",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "TINI_KILL_PROCESS_GROUP",
      "service": "gotenberg",
      "description": "Signal Chromium and LibreOffice children",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "GOTENBERG_API_BASIC_AUTH_PASSWORD",
      "service": "gotenberg",
      "description": "Basic auth password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GOTENBERG_API_BASIC_AUTH_USERNAME",
      "service": "gotenberg",
      "description": "Basic auth username, all routes but /health",
      "secret": false,
      "strategy": "default",
      "default": "gotenberg"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "gotenberg",
      "description": "Finish in-flight conversions on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gotenberg-pdf"
      }
    },
    "cli": "railway deploy --template gotenberg-pdf",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "69353717-3205-464a-ab3d-ee8920d6c18b",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "d240748b-d93c-4224-b62f-10b995d6bab7": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/gotenberg.png",
                  "name": "gotenberg",
                  "deploy": {
                    "startCommand": "/usr/bin/tini -s -- gotenberg --api-port-from-env=PORT --api-start-timeout=60s --api-timeout=120s --api-enable-basic-auth=true --chromium-auto-start=true --libreoffice-auto-start=true --chromium-deny-private-ips=true --libreoffice-deny-private-ips=true --webhook-deny-private-ips=true --api-download-from-deny-private-ips=true",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "gotenberg/gotenberg:latest"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone for rendered document timestamps",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port the API listens on",
                      "defaultValue": "3000"
                    },
                    "TINI_KILL_PROCESS_GROUP": {
                      "isOptional": false,
                      "description": "Signal Chromium and LibreOffice children",
                      "defaultValue": "1"
                    },
                    "GOTENBERG_API_BASIC_AUTH_PASSWORD": {
                      "isOptional": false,
                      "description": "Basic auth password",
                      "defaultValue": "{{GOTENBERG_API_BASIC_AUTH_PASSWORD}}"
                    },
                    "GOTENBERG_API_BASIC_AUTH_USERNAME": {
                      "isOptional": false,
                      "description": "Basic auth username, all routes but /health",
                      "defaultValue": "gotenberg"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Finish in-flight conversions on redeploy",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "gotenberg",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T15:54:47.790Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_226721bf4f024636908f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 76,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "gotenberg"
  }
}
