How to Run Ollama & Open WebUI on Contabo Cloud VPS: Private Self-Hosted AI Assistant
Contabo High-Performance Cloud VPS
Massive 4 vCPU cores, 8GB RAM, and 32TB monthly traffic. Ideal for Linux developers.
Stop leaking proprietary code and confidential data to public AI APIs. Run local LLMs like Llama 3 and Mistral on high-RAM Contabo VPS with Open WebUI.
- Contabo Cloud VPS offers colossal RAM (16GB to 64GB) at ultra-low monthly prices perfect for quantized LLMs
- 100% private: no prompts, customer data, or code snippets are sent to external third parties
- Open WebUI provides a ChatGPT-identical web interface with user accounts, document RAG, and model switching
The Corporate Privacy Crisis with Commercial AI
Generative AI tools like ChatGPT and Claude have revolutionized engineering and business productivity. However, pasting confidential client contracts, database schemas, medical records, or proprietary source code into public commercial cloud models violates corporate compliance policies, NDA agreements, and GDPR regulations.
While renting enterprise cloud GPUs on AWS or Lambda Labs costs $500 to $2,000+ per month, modern open-source Large Language Models (LLMs)—such as Meta's Llama 3 (8B), Mistral 7B, and DeepSeek—can run efficiently on CPU cores when quantized (Q4_K_M). The key requirement is substantial RAM.
Contabo Cloud VPS is famous for offering the highest RAM-per-dollar ratio in the hosting industry: Contabo Cloud VPS 2 provides 6 vCPU cores and 16 GB RAM for $11.50/mo, while Cloud VPS 3 delivers 8 vCPU cores and 30 GB RAM for $19.50/mo. Here is how to build your private AI assistant.
Step 1: Install Docker on Contabo VPS
SSH into your high-RAM Contabo VPS:
ssh root@YOUR_SERVER_IP
apt update && apt upgrade -y
apt install -y curl ufw nginx certbot python3-certbot-nginx
curl -fsSL https://get.docker.com | sh
systemctl enable --now docker
Step 2: Deploying Ollama and Open WebUI with Docker Compose
Create a dedicated workspace for your AI cluster:
mkdir -p /opt/ai-assistant && cd /opt/ai-assistant
nano docker-compose.yml
Paste the following production stack configuration:
services:
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: always
volumes:
- ./ollama_data:/root/.ollama
ports:
- "127.0.0.1:11434:11434"
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
restart: always
environment:
- OLLAMA_BASE_URL=http://ollama:11434
- WEBUI_SECRET_KEY=GenerateAStrongRandom32ByteSecretKeyHere!
volumes:
- ./openwebui_data:/app/backend/data
ports:
- "127.0.0.1:8080:8080"
depends_on:
- ollama
Launch the containers:
docker compose up -d
docker compose ps
Step 3: Pulling Quantized AI Models
Execute the pull command inside the Ollama container to download high-performance quantized LLMs:
# Download Llama 3 8B (Requires ~4.7GB RAM)
docker exec -it ollama ollama pull llama3:8b
# Download Mistral 7B (Requires ~4.1GB RAM)
docker exec -it ollama ollama pull mistral:7b
# Download Phi-3 Mini (Ultra-fast, requires ~2.3GB RAM)
docker exec -it ollama ollama pull phi3:mini
Step 4: Nginx Reverse Proxy with Let's Encrypt SSL
Expose Open WebUI securely over HTTPS:
cat << 'EOF' > /etc/nginx/sites-available/ai.conf
server {
server_name ai.yourdomain.com;
client_max_body_size 200M;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
EOF
ln -s /etc/nginx/sites-available/ai.conf /etc/nginx/sites-enabled/
nginx -t && systemctl reload nginx
certbot --nginx -d ai.yourdomain.com --non-interactive --agree-tos -m admin@yourdomain.com
Step 5: Exploring Open WebUI Features
Visit https://ai.yourdomain.com and register your administrator account (the first registered user receives master administrator rights):
- ChatGPT-Identical UX: Thread history, model switching dropdown, system prompt customization, and markdown code highlighting.
- Document RAG (Retrieval Augmented Generation): Upload PDFs, technical manuals, or company policies directly into the chat. Open WebUI automatically vectors the document and answers questions based strictly on your private documents!
- Multi-User Team Management: Invite team members with role-based permissions without exposing master API keys.
Recommended Reading & Related Guides
Summary
By leveraging Contabo's massive RAM configurations, you can deploy a completely sovereign, private AI assistant that protects intellectual property while costing less than a single ChatGPT Plus subscription.
Video Walkthrough & Official References
How to Use Docker Compose to Manage Containers on Linux VPS • syncbricks
Editorial Verdict: Pros & Cons
What We Love (Pros)
- Contabo Cloud VPS offers colossal RAM (16GB to 64GB) at ultra-low monthly prices perfect for quantized LLMs
- 100% private: no prompts, customer data, or code snippets are sent to external third parties
- Open WebUI provides a ChatGPT-identical web interface with user accounts, document RAG, and model switching
Drawbacks (Cons)
- CPU inference is slower than dedicated multi-thousand-dollar enterprise GPUs, but ideal for internal team assistants
Deploy Your Contabo Cloud Server
Includes 4 vCPU Cores, 8GB RAM, 50GB NVMe SSD, and 32TB Outbound Traffic.
Written by Alex Vance
Cloud Infrastructure Architect
Alex and the ServerCraft engineering lab run routine benchmarks on over 25 web hosting providers, maintaining strict objectivity and reproducibility.
Recommended Next Reads
Can You Run AI & LLM Inference on Contabo CPU VPS? (Ollama & Llama 3 Performance Test)
We tested running Ollama, Llama 3.1 8B, and Mistral on a Contabo High-RAM Cloud VPS. Discover token-per-second generation speeds, CPU core scaling, and practical use cases.
How to Connect Multiple VPS Servers with Private WireGuard Mesh Network
Stop exposing private databases and backend APIs to the public internet. Learn how to connect multiple VPS nodes securely over an encrypted WireGuard mesh tunnel.
How to Deploy Laravel 11 Apps on Hostinger KVM VPS with Coolify: Complete CI/CD Pipeline
Stop overpaying for Laravel Forge. Learn how to deploy modern PHP & Laravel applications on Hostinger KVM VPS using Coolify, automated GitHub webhooks, and Redis queues.