{
  "manifest_version": "1.0.0",
  "template": {
    "id": "312be044-ec0f-415c-9489-ed52648ce190",
    "slug": "doclingrailway",
    "name": "docling_railway",
    "description": "Docling + authentication + IP filtering + Gzip + Autosleep configured",
    "url": "https://railway.com/deploy/doclingrailway",
    "upstream": {
      "repo_url": "https://github.com/theseedship/public_railway_docling"
    }
  },
  "services": [
    {
      "name": "public_railway_docling",
      "source": {
        "repo": "https://github.com/theseedship/public_railway_docling"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "docling-serve",
      "source": {
        "image": "quay.io/docling-project/docling-serve-cpu:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "public_railway_docling",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PASSWORD",
      "service": "public_railway_docling",
      "description": "Choose any password, change it anytime you want, it will regenerate automatically the hash associated (no headache)",
      "secret": true,
      "strategy": "default",
      "default": "change-me-directly-anytime"
    },
    {
      "key": "ALLOWED_IPS",
      "service": "public_railway_docling",
      "description": "If ENABLE_IP_FILTER set to TRUE, add your IP's here",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "CADDY_USERNAME",
      "service": "public_railway_docling",
      "description": "Provide a value for CADDY_USERNAME.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "ENABLE_IP_FILTER",
      "service": "public_railway_docling",
      "description": "Set to true if you want to activate it",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CADDY_AUTHORIZATION",
      "service": "public_railway_docling",
      "description": "Your API key if needed (you can change it anytime)",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DOCLING_SERVE_ENABLE_UI",
      "service": "docling-serve",
      "description": "Provide a value for DOCLING_SERVE_ENABLE_UI.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "DOCLING_SERVE_OPTIONS_CACHE_SIZE",
      "service": "docling-serve",
      "description": "Provide a value for DOCLING_SERVE_OPTIONS_CACHE_SIZE.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "DOCLING_SERVE_LOAD_MODELS_AT_BOOT",
      "service": "docling-serve",
      "description": "Provide a value for DOCLING_SERVE_LOAD_MODELS_AT_BOOT.",
      "secret": false,
      "strategy": "default",
      "default": "False"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "doclingrailway"
      }
    },
    "cli": "railway deploy --template doclingrailway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "312be044-ec0f-415c-9489-ed52648ce190",
            "serializedConfig": {
              "services": {
                "8f9bc47d-c13d-4945-b524-f3b41ba6993c": {
                  "icon": null,
                  "name": "public_railway_docling",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "repo": "https://github.com/theseedship/public_railway_docling",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "8080"
                    },
                    "PASSWORD": {
                      "isOptional": false,
                      "description": "Choose any password, change it anytime you want, it will regenerate automatically the hash associated (no headache)",
                      "defaultValue": "change-me-directly-anytime"
                    },
                    "ALLOWED_IPS": {
                      "isOptional": true,
                      "description": "If ENABLE_IP_FILTER set to TRUE, add your IP's here",
                      "defaultValue": "0.0.0.0"
                    },
                    "CADDY_USERNAME": {
                      "isOptional": false,
                      "defaultValue": "admin"
                    },
                    "ENABLE_IP_FILTER": {
                      "isOptional": false,
                      "description": "Set to true if you want to activate it",
                      "defaultValue": "false"
                    },
                    "CADDY_AUTHORIZATION": {
                      "isOptional": false,
                      "description": "Your API key if needed (you can change it anytime)",
                      "defaultValue": "{{CADDY_AUTHORIZATION}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "f3bfda97-de25-4156-93a3-dd7cfc4664ea": {
                  "icon": null,
                  "name": "docling-serve",
                  "deploy": {
                    "startCommand": "docling-serve run --host \"::\"",
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "quay.io/docling-project/docling-serve-cpu:latest"
                  },
                  "variables": {
                    "DOCLING_SERVE_ENABLE_UI": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "1"
                    },
                    "DOCLING_SERVE_OPTIONS_CACHE_SIZE": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "1"
                    },
                    "DOCLING_SERVE_LOAD_MODELS_AT_BOOT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "False"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "f3bfda97-de25-4156-93a3-dd7cfc4664ea": {
                      "mountPath": "/app"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T03:51:04.979Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ec8278d766964ea2b4e9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 106,
    "typical_build_seconds": 0,
    "typical_start_seconds": 51,
    "slowest_service": "docling-serve"
  }
}
