{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6ce55b24-381f-45d6-9f65-c38caae2fa4c",
    "slug": "operations-pdf-station-with-stirling",
    "name": "Operations PDF Station with Stirling",
    "description": "An authenticated PDF processing station with persistent app state.",
    "url": "https://railway.com/deploy/operations-pdf-station-with-stirling",
    "upstream": {
      "image": "stirlingtools/stirling-pdf@sha256:10164ffe04961b02ebc9fa4da12064eeacb8d3bc3e09ceb059f78ce7aaa83207"
    }
  },
  "services": [
    {
      "name": "App",
      "source": {
        "image": "stirlingtools/stirling-pdf@sha256:10164ffe04961b02ebc9fa4da12064eeacb8d3bc3e09ceb059f78ce7aaa83207"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "App",
      "description": "Provide a value for TZ.",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "App",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SERVER_PORT",
      "service": "App",
      "description": "Provide a value for SERVER_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SYSTEM_BACKENDURL",
      "service": "App",
      "description": "Provide a value for SYSTEM_BACKENDURL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SYSTEM_FRONTENDURL",
      "service": "App",
      "description": "Provide a value for SYSTEM_FRONTENDURL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SECURITY_ENABLELOGIN",
      "service": "App",
      "description": "Provide a value for SECURITY_ENABLELOGIN.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SYSTEM_DEFAULTLOCALE",
      "service": "App",
      "description": "Provide a value for SYSTEM_DEFAULTLOCALE.",
      "secret": false,
      "strategy": "default",
      "default": "en-US"
    },
    {
      "key": "SYSTEM_ENABLEANALYTICS",
      "service": "App",
      "description": "Provide a value for SYSTEM_ENABLEANALYTICS.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SYSTEM_FILEUPLOADLIMIT",
      "service": "App",
      "description": "Provide a value for SYSTEM_FILEUPLOADLIMIT.",
      "secret": false,
      "strategy": "default",
      "default": "50MB"
    },
    {
      "key": "SYSTEM_GOOGLEVISIBILITY",
      "service": "App",
      "description": "Provide a value for SYSTEM_GOOGLEVISIBILITY.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SECURITY_INITIALLOGIN_PASSWORD",
      "service": "App",
      "description": "Provide a value for SECURITY_INITIALLOGIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SECURITY_INITIALLOGIN_USERNAME",
      "service": "App",
      "description": "Provide a value for SECURITY_INITIALLOGIN_USERNAME.",
      "secret": false,
      "strategy": "default",
      "default": "operator"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "operations-pdf-station-with-stirling"
      }
    },
    "cli": "railway deploy --template operations-pdf-station-with-stirling",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6ce55b24-381f-45d6-9f65-c38caae2fa4c",
            "serializedConfig": {
              "services": {
                "bb7d6923-1054-5c5b-9fc3-79c496bb596b": {
                  "name": "App",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'set -eu; for d in configs storage; do mkdir -p \"/data/$d\"; if [ ! -L \"/$d\" ]; then if [ -d \"/$d\" ]; then cp -an \"/$d/.\" \"/data/$d/\"; mv \"/$d\" \"/$d.image\"; fi; ln -s \"/data/$d\" \"/$d\"; fi; done; exec tini -- /scripts/init.sh'",
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "stirlingtools/stirling-pdf@sha256:10164ffe04961b02ebc9fa4da12064eeacb8d3bc3e09ceb059f78ce7aaa83207"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "SERVER_PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "SYSTEM_BACKENDURL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SYSTEM_FRONTENDURL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SECURITY_ENABLELOGIN": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    },
                    "SYSTEM_DEFAULTLOCALE": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "en-US"
                    },
                    "SYSTEM_ENABLEANALYTICS": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    },
                    "SYSTEM_FILEUPLOADLIMIT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "50MB"
                    },
                    "SYSTEM_GOOGLEVISIBILITY": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    },
                    "SECURITY_INITIALLOGIN_PASSWORD": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{SECURITY_INITIALLOGIN_PASSWORD}}"
                    },
                    "SECURITY_INITIALLOGIN_USERNAME": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "operator"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "aa5ec574-5ff0-577a-bf7a-37a188831b07": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-18T10:14:45.913Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-18T09:19:48.082Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a93a3f0906664f13b3e4",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 90,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "App"
  }
}
