{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3e9cedca-2590-4fba-9400-78bb6ac2d8e9",
    "slug": "document-search-or-upload-pdfs-search-th",
    "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-upload-pdfs-search-th",
    "upstream": {
      "repo_url": "https://github.com/ak40u/document-search-railway-starter"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Search API",
      "source": {
        "repo": "https://github.com/ak40u/document-search-railway-starter"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "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
    }
  ],
  "required_inputs": [
    {
      "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"
    },
    {
      "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"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "document-search-or-upload-pdfs-search-th"
      }
    },
    "cli": "railway deploy --template document-search-or-upload-pdfs-search-th",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3e9cedca-2590-4fba-9400-78bb6ac2d8e9",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "37c5ecae-888c-4485-bd2e-49a9aae0cc8c": {
                  "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>": {}
                    }
                  }
                },
                "79de3833-3fdb-4b43-a988-6daa08be28ba": {
                  "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": {
                    "79de3833-3fdb-4b43-a988-6daa08be28ba": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "9941bbe6-fa2f-47b3-a9d3-64b3551b2ae0": {
                  "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": {
                    "9941bbe6-fa2f-47b3-a9d3-64b3551b2ae0": {
                      "mountPath": "/opt/app-root/src/.cache"
                    }
                  }
                },
                "d0c3afa5-8bfc-408e-be55-d93911001f88": {
                  "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}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-05T23:54:15.610Z",
  "generator_version": "0.1.0"
}
