{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4b1d9c25-8a4c-4ac7-9ae1-86e65e2acb0a",
    "slug": "ollama-openweb-ui-run-your-own-open-mode",
    "name": "ollama + openweb-ui: run your own open models, own your (free) tokens",
    "description": "Ollama + OpenWeb-UI + Real, Working, Local Models",
    "url": "https://railway.com/deploy/ollama-openweb-ui-run-your-own-open-mode",
    "upstream": {
      "image": "ghcr.io/open-webui/open-webui"
    }
  },
  "services": [
    {
      "name": "Open WebUI",
      "source": {
        "image": "ghcr.io/open-webui/open-webui"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/backend/data",
      "http": true
    },
    {
      "name": "Ollama",
      "source": {
        "image": "ollama/ollama"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.ollama",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "OLLAMA_BASE_URL",
      "service": "Open WebUI",
      "description": "Base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OLLAMA_HOST",
      "service": "Ollama",
      "description": "The ollama host",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:11434"
    },
    {
      "key": "OLLAMA_ORIGINS",
      "service": "Ollama",
      "description": "Allowed Origins",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ollama-openweb-ui-run-your-own-open-mode"
      }
    },
    "cli": "railway deploy --template ollama-openweb-ui-run-your-own-open-mode",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4b1d9c25-8a4c-4ac7-9ae1-86e65e2acb0a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "363464de-a5e9-4ff8-a8be-8d030b303f81": {
                  "icon": "https://dashboard.snapcraft.io/site_media/appmedia/2024/02/favicon_pUYczil.png",
                  "name": "Open WebUI",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/open-webui/open-webui"
                  },
                  "variables": {
                    "OLLAMA_BASE_URL": {
                      "isOptional": false,
                      "description": "Base URL",
                      "defaultValue": "http://${{Ollama.RAILWAY_PRIVATE_DOMAIN}}:11434"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "363464de-a5e9-4ff8-a8be-8d030b303f81": {
                      "mountPath": "/app/backend/data"
                    }
                  }
                },
                "8065440c-3320-4ac9-8bc6-5106e10a4114": {
                  "icon": "https://res.cloudinary.com/airplo/image/upload/v1730154334/up9smvbwl2citplphy5a.png",
                  "name": "Ollama",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ollama/ollama"
                  },
                  "variables": {
                    "OLLAMA_HOST": {
                      "isOptional": false,
                      "description": "The ollama host",
                      "defaultValue": "0.0.0.0:11434"
                    },
                    "OLLAMA_ORIGINS": {
                      "isOptional": false,
                      "description": "Allowed Origins",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:*"
                    }
                  },
                  "volumeMounts": {
                    "8065440c-3320-4ac9-8bc6-5106e10a4114": {
                      "mountPath": "/root/.ollama"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-05T04:42:40.789Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_0ca0718d786143e0a08e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 137,
    "typical_build_seconds": 0,
    "typical_start_seconds": 51,
    "slowest_service": "Open WebUI"
  }
}
