Skip to main content
Open WebUI can be easily deployed using Docker. This guide covers various Docker deployment scenarios including standalone, with bundled Ollama, and GPU support.

Prerequisites

When using Docker to install Open WebUI, make sure to include the -v open-webui:/app/backend/data in your Docker command. This step is crucial as it ensures your database is properly mounted and prevents any loss of data.

Quick Start

If Ollama is on Your Computer

Connect to Ollama running on the same machine:
Access Open WebUI at http://localhost:3000

If Ollama is on a Different Server

Connect to Ollama on another server by setting the OLLAMA_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 a docker-compose.yaml file:
docker-compose.yaml
Run with:

GPU Support with Docker Compose

Create docker-compose.gpu.yaml to extend the base configuration:
docker-compose.gpu.yaml
Run with GPU support:

Available Docker Images

Open WebUI provides several image tags:
For CUDA acceleration, use the :cuda tag. For bundled Ollama, use the :ollama tag.

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:8080

Build 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 - cu121 for CUDA 12, cu128 for CUDA 12.8 (default: cu128)
  • USE_EMBEDDING_MODEL: Sentence transformer model (default: sentence-transformers/all-MiniLM-L6-v2)
  • USE_RERANKING_MODEL: Optional reranking model
  • USE_AUXILIARY_EMBEDDING_MODEL: Auxiliary embedding model (default: TaylorAI/bge-micro-v2)
  • BUILD_HASH: Build version hash
  • UID / GID: User and group IDs (default: 0 for root)
If you change the embedding model, you won’t be able to use RAG Chat with your previous documents. You’ll need to re-embed them.

Container Environment

The container runs on port 8080 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 the HF_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