{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c08738b8-3c5d-4dd2-88c8-a70ff8612adb",
    "slug": "docling",
    "name": "Docling",
    "description": "LlamaParse Alternative. Convert PDF, DOCX and scans to Markdown and JSON",
    "url": "https://railway.com/deploy/docling",
    "upstream": {
      "image": "ghcr.io/docling-project/docling-serve-cpu:v1.30.0"
    }
  },
  "services": [
    {
      "name": "docling-worker",
      "source": {
        "image": "ghcr.io/docling-project/docling-serve-cpu:v1.30.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "docling-serve",
      "source": {
        "image": "ghcr.io/docling-project/docling-serve-cpu:v1.30.0"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "DOCLING_SERVE_ENG_KIND",
      "service": "docling-worker",
      "description": "Use Redis queue engine",
      "secret": false,
      "strategy": "default",
      "default": "rq"
    },
    {
      "key": "DOCLING_SERVE_LOG_LEVEL",
      "service": "docling-worker",
      "description": "Show conversion progress logs",
      "secret": false,
      "strategy": "default",
      "default": "INFO"
    },
    {
      "key": "DOCLING_SERVE_ENG_RQ_REDIS_URL",
      "service": "docling-worker",
      "description": "Queue and result store",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOCLING_SERVE_ENG_RQ_QUEUE_NAME",
      "service": "docling-worker",
      "description": "Queue this worker consumes",
      "secret": false,
      "strategy": "default",
      "default": "convert"
    },
    {
      "key": "DOCLING_SERVE_ARTIFACT_STORAGE_BUCKET",
      "service": "docling-worker",
      "description": "Export bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOCLING_SERVE_ARTIFACT_STORAGE_ENABLED",
      "service": "docling-worker",
      "description": "Worker uploads exported files",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DOCLING_SERVE_ARTIFACT_STORAGE_ENDPOINT",
      "service": "docling-worker",
      "description": "Bare host, no scheme",
      "secret": false,
      "strategy": "default",
      "default": "t3.storageapi.dev"
    },
    {
      "key": "DOCLING_SERVE_ARTIFACT_STORAGE_ACCESS_KEY",
      "service": "docling-worker",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOCLING_SERVE_ARTIFACT_STORAGE_SECRET_KEY",
      "service": "docling-worker",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "docling-serve",
      "description": "HTTP port for health probe",
      "secret": false,
      "strategy": "default",
      "default": "5001"
    },
    {
      "key": "UVICORN_PORT",
      "service": "docling-serve",
      "description": "Port the API actually binds",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOCLING_SERVE_API_KEY",
      "service": "docling-serve",
      "description": "X-Api-Key value for all routes",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DOCLING_SERVE_ENG_KIND",
      "service": "docling-serve",
      "description": "Use Redis queue engine",
      "secret": false,
      "strategy": "default",
      "default": "rq"
    },
    {
      "key": "DOCLING_SERVE_ENABLE_UI",
      "service": "docling-serve",
      "description": "Mount Gradio playground at /ui",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DOCLING_SERVE_LOG_LEVEL",
      "service": "docling-serve",
      "description": "Show conversion progress logs",
      "secret": false,
      "strategy": "default",
      "default": "INFO"
    },
    {
      "key": "DOCLING_SERVE_ENG_RQ_REDIS_URL",
      "service": "docling-serve",
      "description": "Queue and result store",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOCLING_SERVE_ENG_RQ_QUEUE_NAME",
      "service": "docling-serve",
      "description": "Queue name workers listen on",
      "secret": false,
      "strategy": "default",
      "default": "convert"
    },
    {
      "key": "DOCLING_SERVE_ARTIFACT_STORAGE_BUCKET",
      "service": "docling-serve",
      "description": "Export bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOCLING_SERVE_ARTIFACT_STORAGE_ENABLED",
      "service": "docling-serve",
      "description": "Enable presigned URL target",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DOCLING_SERVE_ARTIFACT_STORAGE_ENDPOINT",
      "service": "docling-serve",
      "description": "Bare host, no scheme",
      "secret": false,
      "strategy": "default",
      "default": "t3.storageapi.dev"
    },
    {
      "key": "DOCLING_SERVE_ARTIFACT_STORAGE_ACCESS_KEY",
      "service": "docling-serve",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOCLING_SERVE_ARTIFACT_STORAGE_SECRET_KEY",
      "service": "docling-serve",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Standard Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default ACL user created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Convenience alias of the generated password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Generated password for the default user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Public connection string over the TCP proxy, for external tools",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "docling"
      }
    },
    "cli": "railway deploy --template docling",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c08738b8-3c5d-4dd2-88c8-a70ff8612adb",
            "serializedConfig": {
              "buckets": {
                "b580f9bd-e494-4282-84e3-09b7149c8eb9": {
                  "name": "docling-artifacts"
                }
              },
              "services": {
                "c892b8d8-217e-42fd-9e77-bce70e8c0fec": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/docling.svg",
                  "name": "docling-worker",
                  "deploy": {
                    "startCommand": "container-entrypoint docling-serve rq-worker",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/docling-project/docling-serve-cpu:v1.30.0"
                  },
                  "variables": {
                    "DOCLING_SERVE_ENG_KIND": {
                      "isOptional": false,
                      "description": "Use Redis queue engine",
                      "defaultValue": "rq"
                    },
                    "DOCLING_SERVE_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Show conversion progress logs",
                      "defaultValue": "INFO"
                    },
                    "DOCLING_SERVE_ENG_RQ_REDIS_URL": {
                      "isOptional": false,
                      "description": "Queue and result store",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DOCLING_SERVE_ENG_RQ_QUEUE_NAME": {
                      "isOptional": false,
                      "description": "Queue this worker consumes",
                      "defaultValue": "convert"
                    },
                    "DOCLING_SERVE_ARTIFACT_STORAGE_BUCKET": {
                      "isOptional": false,
                      "description": "Export bucket name",
                      "defaultValue": "${{docling-artifacts.BUCKET}}"
                    },
                    "DOCLING_SERVE_ARTIFACT_STORAGE_ENABLED": {
                      "isOptional": false,
                      "description": "Worker uploads exported files",
                      "defaultValue": "true"
                    },
                    "DOCLING_SERVE_ARTIFACT_STORAGE_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bare host, no scheme",
                      "defaultValue": "t3.storageapi.dev"
                    },
                    "DOCLING_SERVE_ARTIFACT_STORAGE_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{docling-artifacts.ACCESS_KEY_ID}}"
                    },
                    "DOCLING_SERVE_ARTIFACT_STORAGE_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{docling-artifacts.SECRET_ACCESS_KEY}}"
                    }
                  }
                },
                "cb5a5305-222c-441c-8fd6-3a791db0ff2a": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/docling.svg",
                  "name": "docling-serve",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/ready",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/docling-project/docling-serve-cpu:v1.30.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port for health probe",
                      "defaultValue": "5001"
                    },
                    "UVICORN_PORT": {
                      "isOptional": false,
                      "description": "Port the API actually binds",
                      "defaultValue": "${{PORT}}"
                    },
                    "DOCLING_SERVE_API_KEY": {
                      "isOptional": false,
                      "description": "X-Api-Key value for all routes",
                      "defaultValue": "{{DOCLING_SERVE_API_KEY}}"
                    },
                    "DOCLING_SERVE_ENG_KIND": {
                      "isOptional": false,
                      "description": "Use Redis queue engine",
                      "defaultValue": "rq"
                    },
                    "DOCLING_SERVE_ENABLE_UI": {
                      "isOptional": false,
                      "description": "Mount Gradio playground at /ui",
                      "defaultValue": "true"
                    },
                    "DOCLING_SERVE_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Show conversion progress logs",
                      "defaultValue": "INFO"
                    },
                    "DOCLING_SERVE_ENG_RQ_REDIS_URL": {
                      "isOptional": false,
                      "description": "Queue and result store",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DOCLING_SERVE_ENG_RQ_QUEUE_NAME": {
                      "isOptional": false,
                      "description": "Queue name workers listen on",
                      "defaultValue": "convert"
                    },
                    "DOCLING_SERVE_ARTIFACT_STORAGE_BUCKET": {
                      "isOptional": false,
                      "description": "Export bucket name",
                      "defaultValue": "${{docling-artifacts.BUCKET}}"
                    },
                    "DOCLING_SERVE_ARTIFACT_STORAGE_ENABLED": {
                      "isOptional": false,
                      "description": "Enable presigned URL target",
                      "defaultValue": "true"
                    },
                    "DOCLING_SERVE_ARTIFACT_STORAGE_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bare host, no scheme",
                      "defaultValue": "t3.storageapi.dev"
                    },
                    "DOCLING_SERVE_ARTIFACT_STORAGE_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{docling-artifacts.ACCESS_KEY_ID}}"
                    },
                    "DOCLING_SERVE_ARTIFACT_STORAGE_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{docling-artifacts.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5001": {
                        "port": 5001
                      }
                    }
                  }
                },
                "fe15a25e-2db6-42a6-838c-19fb2a07ea10": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Standard Redis port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default ACL user created on first boot",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Convenience alias of the generated password",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the default user",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Public connection string over the TCP proxy, for external tools",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "volumeMounts": {
                    "fe15a25e-2db6-42a6-838c-19fb2a07ea10": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "docling-serve",
      "method": "GET",
      "path": "/ready",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T12:53:26.671Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9b7edf7221204a7d8ee0",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 67,
    "typical_build_seconds": 0,
    "typical_start_seconds": 50,
    "slowest_service": "docling-serve"
  }
}
