{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f3a49f4b-7631-4d98-a2ca-411d3f3cf09d",
    "slug": "llamaindex-apps-or-1",
    "name": "LlamaIndex Apps | Streamlit on the Port the Platform Assigns",
    "description": "Streamlit apps that bind the assigned port. The stock one never does.",
    "url": "https://railway.com/deploy/llamaindex-apps-or-1",
    "upstream": {
      "repo_url": "https://github.com/ak40u/llama-index-railway"
    }
  },
  "services": [
    {
      "name": "chat-with-pdf",
      "source": {
        "repo": "https://github.com/ak40u/llama-index-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "summarize-url",
      "source": {
        "repo": "https://github.com/ak40u/llama-index-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "chat-with-pdf",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PORT",
      "service": "summarize-url",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "llamaindex-apps-or-1"
      }
    },
    "cli": "railway deploy --template llamaindex-apps-or-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f3a49f4b-7631-4d98-a2ca-411d3f3cf09d",
            "serializedConfig": {
              "services": {
                "c0ab8e5d-0239-4c4a-8d7a-ff866444032a": {
                  "icon": null,
                  "name": "chat-with-pdf",
                  "deploy": {
                    "startCommand": "streamlit run streamlit_app.py --server.port $PORT --server.address 0.0.0.0 --server.headless true",
                    "healthcheckPath": "/_stcore/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/ak40u/llama-index-railway",
                    "rootDirectory": "/chat-with-pdf"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "8080"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "da229d65-9f50-426e-abd1-6d5c8edbce83": {
                  "icon": null,
                  "name": "summarize-url",
                  "deploy": {
                    "startCommand": "streamlit run streamlit_app.py --server.port $PORT --server.address 0.0.0.0 --server.headless true",
                    "healthcheckPath": "/_stcore/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/ak40u/llama-index-railway",
                    "rootDirectory": "/summarize-url"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "8080"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "chat-with-pdf",
      "method": "GET",
      "path": "/_stcore/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": false
  },
  "generated_at": "2026-09-30T10:14:49.191Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-30T08:19:03.152Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7a80ac4686f3464fa3e3",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 128,
    "typical_build_seconds": 101,
    "typical_start_seconds": 10,
    "slowest_service": "summarize-url"
  }
}
