Prerequisites
- Docker installed on your system
- For GPU support: Nvidia CUDA container toolkit on Linux/WSL
Quick Start
If Ollama is on Your Computer
Connect to Ollama running on the same machine:If Ollama is on a Different Server
Connect to Ollama on another server by setting theOLLAMA_BASE_URL:
OpenAI API Only
If you’re only using OpenAI API without Ollama:GPU Support
NVIDIA GPU with CUDA
Run Open WebUI with NVIDIA GPU support:Bundled Ollama Installation
These images bundle Open WebUI with Ollama in a single container:Docker Compose
Basic Setup
Create adocker-compose.yaml file:
docker-compose.yaml
GPU Support with Docker Compose
Createdocker-compose.gpu.yaml to extend the base configuration:
docker-compose.gpu.yaml
Available Docker Images
Open WebUI provides several image tags:Network Configuration
Host Network Mode
If you’re experiencing connection issues, use host networking:With
--network=host, the port changes from 3000 to 8080, so access at http://localhost:8080Build Arguments
When building from the Dockerfile, you can use these build arguments:Build Arguments Reference
USE_CUDA: Enable CUDA support (default:false)USE_OLLAMA: Bundle Ollama in the image (default:false)USE_SLIM: Use slim build without downloading models (default:false)USE_CUDA_VER: CUDA version -cu121for CUDA 12,cu128for CUDA 12.8 (default:cu128)USE_EMBEDDING_MODEL: Sentence transformer model (default:sentence-transformers/all-MiniLM-L6-v2)USE_RERANKING_MODEL: Optional reranking modelUSE_AUXILIARY_EMBEDDING_MODEL: Auxiliary embedding model (default:TaylorAI/bge-micro-v2)BUILD_HASH: Build version hashUID/GID: User and group IDs (default:0for root)
Container Environment
The container runs on port8080 internally and includes:
- Python 3.11.14
- Node.js 22 (for frontend build)
- FFmpeg for media processing
- Pandoc for document conversion
Health Check
The container includes a health check that verifies the service is running:Offline Mode
For offline environments, set theHF_HUB_OFFLINE environment variable:
Next Steps
Environment Variables
Configure Open WebUI with environment variables
Reverse Proxy
Set up nginx or Apache reverse proxy
Updating
Keep your installation up-to-date
Kubernetes
Deploy on Kubernetes