Development VPS Services¶
Complete documentation of all services running on Development VPS (46.224.125.1).
Quick Reference Table¶
| Service | URL | Port | Purpose | Backup Type | Recovery Priority |
|---|---|---|---|---|---|
| open-webui | dev.kua.cl | 3000 | AI chat interface | Data directory | LOW |
Service Details¶
open-webui - AI Chat Interface¶
Purpose: Web UI for interacting with AI models (compatible with OpenAI API, Ollama, etc.)
Container: open-webui
Access:
- URL: https://dev.kua.cl
- Port: 3000
- Location: /opt/open-webui
Data Location:
- Data directory: /opt/open-webui/data (chat history, user settings, uploaded files)
- Configuration: /opt/open-webui/.env, /opt/open-webui/docker-compose.yml
Features: - Chat with AI models (OpenAI, Claude, Ollama) - Document upload and analysis - Code generation and debugging - Multi-model switching - Chat history preservation
Backup Strategy: - Data directory: Weekly backup to Storage Box - Configuration: .env file backup - Chat history: Included in data directory backup - Fresh install: OK (chat history not critical)
Recovery Time: 5 minutes
Recovery Process:
# Option 1: Restore data directory
rsync -avz /mnt/storagebox/backups/weekly/open-webui/ /opt/open-webui/data/
# Option 2: Fresh install (acceptable for dev environment)
cd /opt/open-webui && docker-compose up -d
# Restore configuration
cp /mnt/storagebox/backups/configs/open-webui/.env /opt/open-webui/
Notes: - Chat history not critical (development environment) - API keys stored in Infisical (secrets.kua.cl) - Can connect to multiple AI providers - Runs on Development VPS to isolate load from production services
Docker Compose Configuration¶
open-webui¶
version: '3.8'
services:
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
restart: unless-stopped
ports:
- "3000:8080"
volumes:
- ./data:/app/backend/data
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
networks:
- open-webui-network
networks:
open-webui-network:
driver: bridge
Environment Variables¶
Located in /opt/open-webui/.env:
# AI Provider API Keys (stored in Infisical)
OPENAI_API_KEY=<stored in Infisical>
ANTHROPIC_API_KEY=<stored in Infisical>
# Application Configuration
PORT=3000
NODE_ENV=development
Security Note: API keys are stored in Infisical (secrets.kua.cl)
Maintenance Commands¶
View Logs¶
Restart Service¶
Update to Latest Version¶
Check Data Directory Size¶
Usage Examples¶
Access Web Interface¶
- Navigate to https://dev.kua.cl
- Sign in (or create account on first visit)
- Select AI model from dropdown
- Start chatting
Upload Documents for Analysis¶
- Click upload button in chat interface
- Select document (PDF, TXT, MD, etc.)
- Ask questions about the document
- open-webui processes and analyzes content
Switch Between AI Models¶
- Click model dropdown in chat interface
- Select model (GPT-4, Claude, Llama, etc.)
- Continue conversation with new model
Future Services (Planned)¶
The Development VPS can host additional development tools:
- Staging environment: Test new services before production deployment
- Database playground: PostgreSQL/MySQL for testing
- Code server: VS Code in browser
- Jupyter notebooks: Data science experimentation
- Local Ollama: Self-hosted LLM models
Resource Monitoring¶
Check CPU/Memory Usage¶
Check Disk Usage¶
View System Load¶
Cost Optimization¶
Current Cost: €9.49/month (CX32)¶
Optimization Options:
- Scale down when not in use: CX22 (€5.83/mo) for light workloads
- Pause VPS: Snapshot VPS, delete instance, restore when needed (€0.05/GB/mo for snapshot)
- Shared VPS: Run dev services on Production VPS (not recommended - load isolation)
Recommendation: Keep CX32 for consistent development environment
Troubleshooting¶
Issue: open-webui not responding¶
Solution:
# 1. Check if container is running
ssh dev "docker ps | grep open-webui"
# 2. Check logs for errors
ssh dev "docker logs open-webui"
# 3. Restart container
ssh dev "cd /opt/open-webui && docker-compose restart"
Issue: API keys not working¶
Solution:
1. Check Infisical for current API keys
2. Update /opt/open-webui/.env with correct keys
3. Restart open-webui: docker-compose restart
Issue: Out of disk space¶
Solution:
# 1. Check disk usage
ssh dev "df -h"
# 2. Clean up old Docker images
ssh dev "docker system prune -a"
# 3. Clear open-webui data (if acceptable)
ssh dev "rm -rf /opt/open-webui/data/uploads/*"
Related Documentation¶
- Development VPS Overview - Server information
- Production VPS Services - Production environment
- Infisical - Secrets management