# Self-host Open WebUI

> A self-hosted chat interface for running local large language models through Ollama.

- Page: https://levelrail.com/templates/open-webui/
- JSON: https://levelrail.com/templates/open-webui.json
- Category: AI
- Licence: LicenseRef-Open-WebUI (Source available)
- Source: https://github.com/open-webui/open-webui
- Upstream docs: https://docs.openwebui.com

## Requirements
- Memory: about 1 GiB
- amd64: published, arm64: tested
- Needs configuration before start: no
- Pinned image tag: 0.11.3

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| ollama | ollama/ollama | 0.33.3 | none | ollama_data -> /root/.ollama |
| open-webui | ghcr.io/open-webui/open-webui | 0.11.3 | 8080 | openwebui_data -> /app/backend/data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| open-webui | OLLAMA_BASE_URL | preset |
| open-webui | WEBUI_SECRET_KEY | generated |

## Deploy

### CLI

```bash
levelrail-cli templates deploy open-webui --name my-open-webui
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/open-webui/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Open WebUI on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id open-webui for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image ollama/ollama:0.33.3, ghcr.io/open-webui/open-webui:0.11.3 is what you deploy there.

Self-host Open WebUI, Open WebUI docker compose file, deploy Open WebUI on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
