{
  "manifest_version": "1.0.0",
  "template": {
    "id": "73a119b1-3537-45bc-9f5b-3ca3620bd253",
    "slug": "document-search-or-1",
    "name": "Document Search | Upload PDFs, Search Them by Meaning",
    "description": "Upload PDFs and search them by meaning: Docling, embeddings, pgvector.",
    "url": "https://railway.com/deploy/document-search-or-1",
    "upstream": {
      "repo_url": "https://github.com/ak40u/document-search-railway-starter"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "pgvector/pgvector:pg17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Docling",
      "source": {
        "image": "ghcr.io/docling-project/docling-serve:v1.28.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/app-root/src/.cache",
      "http": false
    },
    {
      "name": "Indexer",
      "source": {
        "repo": "https://github.com/ak40u/document-search-railway-starter"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Search API",
      "source": {
        "repo": "https://github.com/ak40u/document-search-railway-starter"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Provide a value for PGDATA.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Provide a value for PGPORT.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Docling",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5001"
    },
    {
      "key": "UVICORN_HOST",
      "service": "Docling",
      "description": "Provide a value for UVICORN_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "UVICORN_PORT",
      "service": "Docling",
      "description": "Provide a value for UVICORN_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5001"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Docling",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "DOCLING_SERVE_ENABLE_UI",
      "service": "Docling",
      "description": "Provide a value for DOCLING_SERVE_ENABLE_UI.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DOCLING_URL",
      "service": "Indexer",
      "description": "Provide a value for DOCLING_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "Indexer",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "Search API",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "API_TOKEN",
      "service": "Search API",
      "description": "Provide a value for API_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DOCLING_URL",
      "service": "Search API",
      "description": "Provide a value for DOCLING_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "Search API",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "document-search-or-1"
      }
    },
    "cli": "railway deploy --template document-search-or-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "73a119b1-3537-45bc-9f5b-3ca3620bd253",
            "serializedConfig": {
              "services": {
                "0535afac-6b44-4ac8-a712-d99a7a3fad34": {
                  "icon": null,
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:pg17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "defaultValue": "5432"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://postgres:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "0535afac-6b44-4ac8-a712-d99a7a3fad34": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "59c85693-da2f-4fa2-a8a9-1e3183934479": {
                  "icon": null,
                  "name": "Docling",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/docling-project/docling-serve:v1.28.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "5001"
                    },
                    "UVICORN_HOST": {
                      "isOptional": false,
                      "defaultValue": "::"
                    },
                    "UVICORN_PORT": {
                      "isOptional": false,
                      "defaultValue": "5001"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "defaultValue": "0"
                    },
                    "DOCLING_SERVE_ENABLE_UI": {
                      "isOptional": false,
                      "defaultValue": "false"
                    }
                  },
                  "volumeMounts": {
                    "59c85693-da2f-4fa2-a8a9-1e3183934479": {
                      "mountPath": "/opt/app-root/src/.cache"
                    }
                  }
                },
                "5e5fac62-eb09-4271-8f65-577a517f235c": {
                  "icon": null,
                  "name": "Indexer",
                  "deploy": {
                    "startCommand": "node dist/worker.js",
                    "healthcheckPath": "",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/ak40u/document-search-railway-starter",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DOCLING_URL": {
                      "isOptional": false,
                      "defaultValue": "http://${{Docling.RAILWAY_PRIVATE_DOMAIN}}:5001"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    }
                  }
                },
                "f1acd8d2-6852-4302-a4fc-e8edf5994e4f": {
                  "icon": null,
                  "name": "Search API",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/ak40u/document-search-railway-starter",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "8080"
                    },
                    "API_TOKEN": {
                      "isOptional": false,
                      "defaultValue": "{{API_TOKEN}}"
                    },
                    "DOCLING_URL": {
                      "isOptional": false,
                      "defaultValue": "http://${{Docling.RAILWAY_PRIVATE_DOMAIN}}:5001"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-30T10:14:49.191Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-30T07:55:14.167Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_0496136792014c5ebf08",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 198,
    "typical_build_seconds": 41,
    "typical_start_seconds": 10,
    "slowest_service": "Indexer"
  }
}
