{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c661a4ce-bf4c-4806-8e86-9d3cbd96ac27",
    "slug": "local-deep-research",
    "name": "Local Deep Research",
    "description": "AI deep-research assistant with citations and private SearXNG, behind auth",
    "url": "https://railway.com/deploy/local-deep-research",
    "upstream": {
      "image": "ghcr.io/youssefsiam38/ldr-railway-caddy:1.0.0"
    }
  },
  "services": [
    {
      "name": "ldr",
      "source": {
        "image": "localdeepresearch/local-deep-research:1.10.7"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "searxng",
      "source": {
        "image": "ghcr.io/youssefsiam38/ldr-railway-searxng:1.0.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "caddy",
      "source": {
        "image": "ghcr.io/youssefsiam38/ldr-railway-caddy:1.0.0"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "LDR_DATA_DIR",
      "service": "ldr",
      "description": "Provide a value for LDR_DATA_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "LDR_WEB_HOST",
      "service": "ldr",
      "description": "Provide a value for LDR_WEB_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "LDR_WEB_PORT",
      "service": "ldr",
      "description": "Provide a value for LDR_WEB_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "TRUST_PROXY_HEADERS",
      "service": "ldr",
      "description": "LDR is reached only through the front door, so it trusts the forwarded HTTPS scheme.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LDR_SEARCH_ENGINE_WEB_SEARXNG_DEFAULT_PARAMS_INSTANCE_URL",
      "service": "ldr",
      "description": "The private SearXNG instance LDR searches with.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SEARXNG_PORT",
      "service": "searxng",
      "description": "Provide a value for SEARXNG_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SEARXNG_SECRET",
      "service": "searxng",
      "description": "SearXNG instance secret, generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SEARXNG_BIND_ADDRESS",
      "service": "searxng",
      "description": "Bind address inside the container.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PORT",
      "service": "caddy",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "LDR_UPSTREAM",
      "service": "caddy",
      "description": "Internal host:port of the LDR service; the front door proxies to it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OWNER_PASSWORD",
      "service": "caddy",
      "description": "The front-door password (HTTP basic auth), generated. Copy it from here; username is 'owner'.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OWNER_USERNAME",
      "service": "caddy",
      "description": "The front-door username you sign in with.",
      "secret": false,
      "strategy": "default",
      "default": "owner"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "caddy",
      "description": "Give LDR time to set up its database on the first start.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "local-deep-research"
      }
    },
    "cli": "railway deploy --template local-deep-research",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c661a4ce-bf4c-4806-8e86-9d3cbd96ac27",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b25d354c-fd12-4da5-9cf5-285a4a4a536b": {
                  "icon": null,
                  "name": "ldr",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "localdeepresearch/local-deep-research:1.10.7"
                  },
                  "variables": {
                    "LDR_DATA_DIR": {
                      "isOptional": false,
                      "defaultValue": "/data"
                    },
                    "LDR_WEB_HOST": {
                      "isOptional": false,
                      "defaultValue": "0.0.0.0"
                    },
                    "LDR_WEB_PORT": {
                      "isOptional": false,
                      "defaultValue": "5000"
                    },
                    "LDR_LLM_MODEL": {
                      "isOptional": true,
                      "description": "Optionally lock the model name."
                    },
                    "LDR_LLM_PROVIDER": {
                      "isOptional": true,
                      "description": "Optionally lock the LLM provider from the environment instead of the UI (e.g. openai_endpoint)."
                    },
                    "TRUST_PROXY_HEADERS": {
                      "isOptional": false,
                      "description": "LDR is reached only through the front door, so it trusts the forwarded HTTPS scheme.",
                      "defaultValue": "true"
                    },
                    "LDR_LLM_OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optionally lock an OpenAI API key from the environment."
                    },
                    "LDR_LLM_ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optionally lock an Anthropic API key from the environment."
                    },
                    "LDR_APP_ALLOW_REGISTRATIONS": {
                      "isOptional": true,
                      "description": "Set false after creating your account(s) to close LDR sign-up even behind the front door."
                    },
                    "LDR_LLM_OPENAI_ENDPOINT_URL": {
                      "isOptional": true,
                      "description": "OpenAI-compatible endpoint URL, if locking an openai_endpoint provider."
                    },
                    "LDR_LLM_OPENAI_ENDPOINT_API_KEY": {
                      "isOptional": true,
                      "description": "API key for the OpenAI-compatible endpoint."
                    },
                    "LDR_SEARCH_ENGINE_WEB_SEARXNG_DEFAULT_PARAMS_INSTANCE_URL": {
                      "isOptional": false,
                      "description": "The private SearXNG instance LDR searches with.",
                      "defaultValue": "http://${{searxng.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    }
                  },
                  "volumeMounts": {
                    "b25d354c-fd12-4da5-9cf5-285a4a4a536b": {
                      "mountPath": "/data"
                    }
                  }
                },
                "c69508eb-8914-495d-909e-8eba100e2b9e": {
                  "icon": null,
                  "name": "searxng",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/youssefsiam38/ldr-railway-searxng:1.0.0"
                  },
                  "variables": {
                    "SEARXNG_PORT": {
                      "isOptional": false,
                      "defaultValue": "8080"
                    },
                    "SEARXNG_SECRET": {
                      "isOptional": false,
                      "description": "SearXNG instance secret, generated.",
                      "defaultValue": "{{SEARXNG_SECRET}}"
                    },
                    "SEARXNG_BIND_ADDRESS": {
                      "isOptional": false,
                      "description": "Bind address inside the container.",
                      "defaultValue": "0.0.0.0"
                    }
                  }
                },
                "e09eed54-cdf3-4a92-ab9b-3dc812d21ffb": {
                  "icon": null,
                  "name": "caddy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/youssefsiam38/ldr-railway-caddy:1.0.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "8080"
                    },
                    "LDR_UPSTREAM": {
                      "isOptional": false,
                      "description": "Internal host:port of the LDR service; the front door proxies to it.",
                      "defaultValue": "${{ldr.RAILWAY_PRIVATE_DOMAIN}}:5000"
                    },
                    "OWNER_PASSWORD": {
                      "isOptional": false,
                      "description": "The front-door password (HTTP basic auth), generated. Copy it from here; username is 'owner'.",
                      "defaultValue": "{{OWNER_PASSWORD}}"
                    },
                    "OWNER_USERNAME": {
                      "isOptional": false,
                      "description": "The front-door username you sign in with.",
                      "defaultValue": "owner"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Give LDR time to set up its database on the first start.",
                      "defaultValue": "300"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "caddy",
      "method": "GET",
      "path": "/api/v1/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-17T10:14:36.166Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-17T07:19:50.070Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_67f30ae7566c4d7cacb0",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 68,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "caddy"
  }
}
