Self-Hosting Ollama and Open WebUI on a Linux VPS with Docker and Caddy

This guide shows how to run Ollama 0.40.18 and Open WebUI v0.13.4 on an Ubuntu 24.04 VPS using Docker Compose, with Caddy providing automatic HTTPS. The setup delivers a private AI chat interface and local model API with predictable monthly costs and no third-party data sharing. Because a CPU-only VPS handles inference through system memory, the article recommends it for personal or small-team use and background automations rather than heavy concurrent traffic. A sizing table maps VPS memory tiers to suitable 4-bit quantized models, with a rule of thumb that an 8B model needs about 5 to 6 GB of RAM for weights alone. The configuration keeps Ollama's port 11434 on the private Docker network, since Ollama has no built-in authentication, and disables public signups after the admin account is created.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in