{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2de1ea09-4194-46cc-b9cd-b067a2b289f9",
    "slug": "ollama-ai",
    "name": "Ollama AI",
    "description": "Run your private AI models with a clean web interface, ready in 1 click.",
    "url": "https://railway.com/deploy/ollama-ai",
    "upstream": {
      "image": "ghcr.io/open-webui/open-webui:latest"
    }
  },
  "services": [
    {
      "name": "ollama",
      "source": {
        "image": "ollama/ollama:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.ollama",
      "http": false
    },
    {
      "name": "open-webui",
      "source": {
        "image": "ghcr.io/open-webui/open-webui:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/backend/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "OLLAMA_HOST",
      "service": "ollama",
      "description": "Listen on all interfaces so Open WebUI can reach Ollama over Railway private networking",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:11434"
    },
    {
      "key": "OLLAMA_ORIGINS",
      "service": "ollama",
      "description": "Allow requests from services using the Railway private domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "open-webui",
      "description": "Railway public service port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "WEBUI_URL",
      "service": "open-webui",
      "description": "Public URL used by Open WebUI",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "WEBUI_AUTH",
      "service": "open-webui",
      "description": "Enable built-in user authentication",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DO_NOT_TRACK",
      "service": "open-webui",
      "description": "Disable optional tracking where supported",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OLLAMA_BASE_URL",
      "service": "open-webui",
      "description": "Connect Open WebUI to Ollama over Railway private networking",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "open-webui",
      "description": "Run as root so Open WebUI can write to the Railway-mounted data volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "WEBUI_SECRET_KEY",
      "service": "open-webui",
      "description": "Persistent secret used for sessions and authentication",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ENABLE_OLLAMA_API",
      "service": "open-webui",
      "description": "Enable Ollama API integration",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SCARF_NO_ANALYTICS",
      "service": "open-webui",
      "description": "Disable Scarf analytics",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OPENAI_API_BASE_URL",
      "service": "open-webui",
      "description": "Default OpenAI-compatible API endpoint",
      "secret": false,
      "strategy": "default",
      "default": "https://api.openai.com/v1"
    },
    {
      "key": "ANONYMIZED_TELEMETRY",
      "service": "open-webui",
      "description": "Disable anonymized telemetry",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ollama-ai"
      }
    },
    "cli": "railway deploy --template ollama-ai",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2de1ea09-4194-46cc-b9cd-b067a2b289f9",
            "serializedConfig": {
              "services": {
                "13b94eaf-4776-44eb-b91f-7e25b9bf0302": {
                  "icon": "https://res.cloudinary.com/airplo/image/upload/v1730154334/up9smvbwl2citplphy5a.png",
                  "name": "ollama",
                  "source": {
                    "image": "ollama/ollama:latest"
                  },
                  "variables": {
                    "OLLAMA_HOST": {
                      "description": "Listen on all interfaces so Open WebUI can reach Ollama over Railway private networking",
                      "defaultValue": "0.0.0.0:11434"
                    },
                    "OLLAMA_ORIGINS": {
                      "description": "Allow requests from services using the Railway private domain",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:*"
                    }
                  },
                  "volumeMounts": {
                    "13b94eaf-4776-44eb-b91f-7e25b9bf0302": {
                      "mountPath": "/root/.ollama"
                    }
                  }
                },
                "e835e1b0-85f9-4928-884f-bf1c629ea762": {
                  "icon": "https://dashboard.snapcraft.io/site_media/appmedia/2024/02/favicon_pUYczil.png",
                  "name": "open-webui",
                  "source": {
                    "image": "ghcr.io/open-webui/open-webui:latest"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Railway public service port",
                      "defaultValue": "8080"
                    },
                    "WEBUI_URL": {
                      "description": "Public URL used by Open WebUI",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "WEBUI_AUTH": {
                      "description": "Enable built-in user authentication",
                      "defaultValue": "true"
                    },
                    "DO_NOT_TRACK": {
                      "description": "Disable optional tracking where supported",
                      "defaultValue": "true"
                    },
                    "OLLAMA_BASE_URL": {
                      "description": "Connect Open WebUI to Ollama over Railway private networking",
                      "defaultValue": "http://${{ollama.RAILWAY_PRIVATE_DOMAIN}}:11434"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root so Open WebUI can write to the Railway-mounted data volume",
                      "defaultValue": "0"
                    },
                    "WEBUI_SECRET_KEY": {
                      "description": "Persistent secret used for sessions and authentication",
                      "defaultValue": "{{WEBUI_SECRET_KEY}}"
                    },
                    "ENABLE_OLLAMA_API": {
                      "description": "Enable Ollama API integration",
                      "defaultValue": "true"
                    },
                    "SCARF_NO_ANALYTICS": {
                      "description": "Disable Scarf analytics",
                      "defaultValue": "true"
                    },
                    "OPENAI_API_BASE_URL": {
                      "description": "Default OpenAI-compatible API endpoint",
                      "defaultValue": "https://api.openai.com/v1"
                    },
                    "ANONYMIZED_TELEMETRY": {
                      "description": "Disable anonymized telemetry",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "e835e1b0-85f9-4928-884f-bf1c629ea762": {
                      "mountPath": "/app/backend/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T18:11:38.845Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_504afbf2061f42e7b58c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 170,
    "typical_build_seconds": 0,
    "typical_start_seconds": 58,
    "slowest_service": "open-webui"
  }
}
