Self-Host Open WebUI with Docker Compose
Open WebUI is an extensible, feature-rich, and user-friendly self-hosted WebUI designed to operate entirely offline. Supports Ollama, OpenAI API specs, RAG with web search, and custom tools.
Minimum Hardware Requirements
version: '3.8'
services:
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
restart: unless-stopped
ports:
- "8080:8080"
environment:
- NODE_ENV=production
- TZ=UTC
volumes:
- open-webui_data:/data
volumes:
open-webui_data:
driver: local
docker-compose.yml and run:
docker compose up -d
Key Environment Variables
Recommended baseline environment configuration for this container
| Variable Name | Default / Recommended Value |
|---|---|
| OLLAMA_BASE_URL | http://host.docker.internal:11434 |
| WEBUI_SECRET_KEY | generate_strong_secret_key |
| ENABLE_SIGNUP | true |
VPS RAM & Server Sizing Calculator
Planning to run Open WebUI alone or alongside other self-hosted containers on one VPS? Toggle apps to calculate your exact RAM needs with a 25% safety buffer.
Matched Cloud VPS Tiers for Selected Workload:
Replaces ChatGPT Plus
Proprietary AI assistant requiring monthly subscriptions per seat with cloud data retention policies.
More Ai Llms Apps View All →
Compare Open WebUI
Benchmark specs head-to-head with other open-source alternatives
Compare Open WebUI Side-by-Side
Select any open-source tool from the dropdown to run a hardware, memory, and popularity benchmark against Open WebUI.