Productivity & Auto 📅 2026-11-22 · Mini AI Tools Research Desk

Deploy Open WebUI with Ollama in Docker: A Local Chat UI Walkthrough

The official Docker command puts a ChatGPT-style interface on localhost:3000 wired to Ollama or cloud APIs, with every flag explained and the empty model list fix.

$ EXECUTIVE BENCHMARK SUMMARY (TL;DR)

What This Setup Gives You

Open WebUI is a self-hosted chat interface in the style people know from ChatGPT: conversation history, multiple models side by side in one selector, user accounts, and an admin panel. Everything it stores, chats, accounts and settings, lives in a Docker volume on the machine, so nothing leaves the house unless a cloud model is connected on purpose.

The backend is pluggable. The quick start lists Ollama for local models, plus OpenAI and Anthropic as first-class providers, OpenAI-compatible services such as Groq, Mistral and OpenRouter, and local servers such as llama.cpp, vLLM and LM Studio. One interface, any mix of local and cloud models.

Architecture of a local Open WebUI and Ollama stack
Browser, container, model server and optional cloud fallback. Checked 22 November 2026.

Try it: docs.openwebui.com/getting-started/quick-start

The One-Command Docker Start (Checked 22 November 2026)

Docker is the officially recommended install. The command below assumes Ollama is already installed on the host machine; on a fresh box, jump to the bundled image command in Route 2. With Docker in place, the documented starting command is:

docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data -e WEBUI_SECRET_KEY=your-secret-key --name open-webui --restart always ghcr.io/open-webui/open-webui:main

FlagWhat it does
-p 3000:8080UI shows up on port 3000 of the machine; change the left number if 3000 is taken
-v open-webui:/app/backend/dataChats, users and settings persist in this named volume across updates
--add-host=host.docker.internal:host-gatewayLets the container reach Ollama or anything else running on the host machine
-e WEBUI_SECRET_KEY=...Generate it with openssl rand -hex 32 and keep it fixed; recreating the container with a fresh random value, or without the data volume, invalidates every existing login
--restart alwaysContainer comes back after a reboot

Open http://localhost:3000 and the first visit asks for an administrator account. That account lands in the admin section, where model connections are configured.

Connecting Models: Three Routes

Route 1, Ollama already on the machine: the container looks for it at http://host.docker.internal:11434, the documented Docker default for OLLAMA_BASE_URL. The single most common failure is an empty model list, and the troubleshooting page pins the cause: when Open WebUI runs in Docker, the host Ollama has to listen on 0.0.0.0, not just localhost. Models are pulled from the interface itself: type the model name into a new chat's selector and confirm the download.

Route 2, one container for everything: the bundled ghcr.io/open-webui/open-webui:ollama image carries Open WebUI and Ollama together, with -v ollama:/root/.ollama for model storage and --gpus=all where a GPU exists.

docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data -e WEBUI_SECRET_KEY=your-secret-key --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama

CPU-only machines drop the --gpus=all flag. NVIDIA's DGX Spark playbook uses exactly this image, budgeting about 7 GB for the image download, roughly 15 GB for gpt-oss:20b and about 25 GB for qwen3.6:latest, per the official playbook. The full command appears at the start of this route.

Route 3, cloud APIs: under the avatar, Settings > Connections takes a URL and key per provider, OpenAI-compatible endpoints included. This is also the answer for machines without a GPU: Groq or OpenRouter carry the model side while Open WebUI keeps the interface and history local.

Three deployment routes for Open WebUI
Three routes by machine type; the volume and secret key apply to all of them. Checked 22 November 2026.

Pick a Route and Ship It

Choose Route 1 if: Ollama is already installed and models are already pulled, and the UI is the only missing piece. One command adds the interface without moving a single model file, and the UI and the model server upgrade on their own schedules.

Choose Route 2 if: the machine is fresh, nothing is installed yet, and the goal is the shortest path to a working stack. One image, one container, one upgrade cycle, at the cost of coupling the two components.

Choose Route 3 if: the hardware is a laptop CPU or a small GPU that cannot carry the intended model locally. Local interface, cloud inference, and WEBUI_AUTH=False turns the login step off for a personal box, an option the quick start documents for single-user mode.

Whichever route, keep the volume and the fixed secret key; both are what make rebuilds painless.

Featured Tools in this Guide

OL

Ollama

Coding & Dev
Freemium

Install Ollama, pull gemma4:e2b, and chat with the model on your own computer.

GR

Groq

Coding & Dev
Freemium

High-speed LLM inference API powered by LPU hardware, offering free developer quotas for open-weight and speech models.

OP

OpenRouter

Coding & Dev
Freemium

Unified AI model router providing single-API access to hundreds of commercial and open-weight models, including free tiers.

More In-Depth Benchmarks & Guides

View all guides →