{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9537ebe8-ad55-48f6-8c5e-15b83535540d",
    "slug": "pdf-toolkit-stirling-pdf-or-just-updated",
    "name": "PDF Toolkit (Stirling-PDF) | (Just Updated) Server-Side OCR, Convert, Merge — No Default Admin Login",
    "description": "Server-side OCR, convert and merge PDFs. No default admin login, data kept.",
    "url": "https://railway.com/deploy/pdf-toolkit-stirling-pdf-or-just-updated",
    "upstream": {
      "image": "stirlingtools/stirling-pdf:2.14.3-fat"
    }
  },
  "services": [
    {
      "name": "stirling-pdf",
      "source": {
        "image": "stirlingtools/stirling-pdf:2.14.3-fat"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "SECURITY_CUSTOMGLOBALAPIKEY",
      "service": "stirling-pdf",
      "description": "Provide a value for SECURITY_CUSTOMGLOBALAPIKEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SECURITY_INITIALLOGIN_PASSWORD",
      "service": "stirling-pdf",
      "description": "Provide a value for SECURITY_INITIALLOGIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pdf-toolkit-stirling-pdf-or-just-updated"
      }
    },
    "cli": "railway deploy --template pdf-toolkit-stirling-pdf-or-just-updated",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9537ebe8-ad55-48f6-8c5e-15b83535540d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "fec485b4-c3ca-4df9-a6c5-94eee5fbc413": {
                  "icon": null,
                  "name": "stirling-pdf",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"set -e;if [ -z \\\"$SECURITY_INITIALLOGIN_PASSWORD\\\" ]; then echo \\\"[railway] SECURITY_INITIALLOGIN_PASSWORD is empty; refusing to boot (upstream would create the default admin/stirling account)\\\"; exit 1; fi;export DOCKER_ENABLE_SECURITY=true SECURITY_ENABLELOGIN=true SECURITY_INITIALLOGIN_USERNAME=admin SYSTEM_GOOGLEVISIBILITY=false SYSTEM_ENABLEANALYTICS=false SYSTEM_MAXFILESIZE=200 SHOW_SURVEY=false METRICS_ENABLED=false SERVER_FORWARDHEADERSSTRATEGY=NATIVE LANGS=en_US UI_APPNAME=Stirling-PDF UI_APPNAMENAVBAR=Stirling-PDF;mkdir -p /data;for d in /configs /customFiles /pipeline /storage /logs; do t=/data/$(basename $d); if [ ! -L $d ]; then if [ ! -d $t ]; then mkdir -p $t; [ -d $d ] && cp -a $d/. $t/ 2>/dev/null || true; fi; rm -rf $d; ln -s $t $d; fi; chown -R 1000:1000 $t; done;chown 1000:1000 /data;echo \\\"[railway] data owner=$(stat -c %u:%g /data)\\\";exec tini -- /scripts/init.sh;\"",
                    "healthcheckPath": "/api/v1/info/status",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "stirlingtools/stirling-pdf:2.14.3-fat"
                  },
                  "variables": {
                    "SECURITY_CUSTOMGLOBALAPIKEY": {
                      "isOptional": false,
                      "defaultValue": "{{SECURITY_CUSTOMGLOBALAPIKEY}}"
                    },
                    "SECURITY_INITIALLOGIN_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{SECURITY_INITIALLOGIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "fec485b4-c3ca-4df9-a6c5-94eee5fbc413": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "stirling-pdf",
      "method": "GET",
      "path": "/api/v1/info/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T16:14:39.735Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T19:23:27.589Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_fc8daff6b95d4d089986",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 97,
    "typical_build_seconds": 0,
    "typical_start_seconds": 30,
    "slowest_service": "stirling-pdf"
  }
}
