{
  "manifest_version": "1.0.0",
  "template": {
    "id": "571aabb5-21b6-472a-a892-9ec72396ab1a",
    "slug": "llama-in-cloud",
    "name": "Llama in Cloud",
    "description": "[Jun '26] Host Meta's Llama models privately, using Ollama + OpenWebUI.",
    "url": "https://railway.com/deploy/llama-in-cloud",
    "upstream": {
      "image": "ghcr.io/open-webui/open-webui"
    }
  },
  "services": [
    {
      "name": "Llama",
      "source": {
        "image": "ollama/ollama"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.ollama",
      "http": false
    },
    {
      "name": "Open-WebUI",
      "source": {
        "image": "ghcr.io/open-webui/open-webui"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/backend/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "OLLAMA_HOST",
      "service": "Llama",
      "description": "Allows Ollama to listen on all interfaces",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "OLLAMA_ORIGINS",
      "service": "Llama",
      "description": "Comma-separated list of allowed origins for CORS. Needed if you’re connecting a web app (like OpenWebUI) from a different host/domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OLLAMA_DEFAULT_MODELS",
      "service": "Llama",
      "description": "You can specify the deepseek model to download at boot time (from https://ollama.com/library). Default is llama3.2:3b",
      "secret": false,
      "strategy": "default",
      "default": "llama3.2:3b"
    },
    {
      "key": "OLLAMA_BASE_URL",
      "service": "Open-WebUI",
      "description": "Points OpenWebUI to the internal Ollama API endpoint for model access.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WEBUI_SECRET_KEY",
      "service": "Open-WebUI",
      "description": "Secret key used by OpenWebUI to secure sessions and authentication.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CORS_ALLOW_ORIGIN",
      "service": "Open-WebUI",
      "description": "Allows the web UI to connect from any origin.",
      "secret": false,
      "strategy": "default",
      "default": "*"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "llama-in-cloud"
      }
    },
    "cli": "railway deploy --template llama-in-cloud",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "571aabb5-21b6-472a-a892-9ec72396ab1a",
            "serializedConfig": {
              "services": {
                "3a540c8b-0fc6-4e61-9f93-f373e1518a3f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/meta.svg",
                  "name": "Llama",
                  "deploy": {
                    "startCommand": "bash -c \"ollama serve & sleep 5 && ollama pull $OLLAMA_DEFAULT_MODELS && wait\"",
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ollama/ollama"
                  },
                  "variables": {
                    "OLLAMA_HOST": {
                      "isOptional": false,
                      "description": "Allows Ollama to listen on all interfaces",
                      "defaultValue": "::"
                    },
                    "OLLAMA_ORIGINS": {
                      "isOptional": false,
                      "description": "Comma-separated list of allowed origins for CORS. Needed if you’re connecting a web app (like OpenWebUI) from a different host/domain",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:*"
                    },
                    "OLLAMA_DEFAULT_MODELS": {
                      "isOptional": false,
                      "description": "You can specify the deepseek model to download at boot time (from https://ollama.com/library). Default is llama3.2:3b",
                      "defaultValue": "llama3.2:3b"
                    }
                  },
                  "volumeMounts": {
                    "3a540c8b-0fc6-4e61-9f93-f373e1518a3f": {
                      "mountPath": "/root/.ollama"
                    }
                  }
                },
                "84520f42-bd03-4c2d-b042-f7f069975c66": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/open-webui-light.svg",
                  "name": "Open-WebUI",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ghcr.io/open-webui/open-webui"
                  },
                  "variables": {
                    "OLLAMA_BASE_URL": {
                      "isOptional": false,
                      "description": "Points OpenWebUI to the internal Ollama API endpoint for model access.",
                      "defaultValue": "http://${{Llama.RAILWAY_PRIVATE_DOMAIN}}:11434"
                    },
                    "WEBUI_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Secret key used by OpenWebUI to secure sessions and authentication.",
                      "defaultValue": "{{WEBUI_SECRET_KEY}}"
                    },
                    "CORS_ALLOW_ORIGIN": {
                      "isOptional": false,
                      "description": "Allows the web UI to connect from any origin.",
                      "defaultValue": "*"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "84520f42-bd03-4c2d-b042-f7f069975c66": {
                      "mountPath": "/app/backend/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-12T22:14:39.841Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-11T22:55:52.104Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c14ed60905104bf9801b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 98,
    "typical_build_seconds": 0,
    "typical_start_seconds": 30,
    "slowest_service": "Open-WebUI"
  }
}
