Skip to main content
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog

Loading…

Servers Are Up

Your apps, automation and data on hardware we own. Build a private stack with predictable capacity and access through your dashboard, API or SSH.

SLA with service creditsOwned hardwareUS-based

Make room for your next idea

Explore the capacity, apps and access options that fit your workload. Check current availability and your total before you buy.

Sign up freeView Pricing

Products

  • Linux VPS
  • Windows VPS
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI & Agent Hosting
  • Containers
  • Instant Apps
  • Software Platforms
  • Network builder
  • Game Servers
  • Free Game Servers
  • Pricing

Resources

  • Free Network Tools
  • 2026 Pricing Benchmark
  • Live SVG Badges
  • Latency & Speed Test
  • Guides & Tutorials
  • Documentation
  • API Reference
  • MCP Server
  • CLI & SDKs
  • OpenAPI & llms.txt
  • Use Cases
  • Free Migration
  • Uptime & Reliability
  • Datacenter
  • System Status
  • Network
  • Provider Comparisons Hub
  • Compare Providers

Company

  • About Us
  • Enterprise
  • Security Architecture
  • Trust Center
  • Blog
  • FAQ
  • Compliance
  • Startup Program
  • Open-Source Sponsorship
  • Press & Media Kit
  • Referral Program
  • Help Center
  • Contact Us
© Servers Are Up
TermsPrivacySLARefund PolicyDPAAcceptable Use
Service information
Docs
  • Documentation Hub
  • Technical Knowledge Library
    Runbooks & 187 Blueprints
  • Choose a Product
    VMs, Containers & Cloud
  • First Linux Server
    SSH, Firewall & Apps
  • Windows Server 2025
    BYOL & Remote Desktop
  • Remote Access
  • Troubleshooting
  • FAQ
  • All Product Guides
    29 Step-by-Step Guides
  • Cloud & SaaS Catalog
    112 Cloud & SaaS Offerings
  • Azure Cloud Storage
    Hot/Cool/Archive & WORM
  • Resource Manager & RBAC
    Groups, Tags & Locks
  • Multi-Model Cloud DB
    JSONB, SQL & pgvector
  • Cloud Identity & ZTNA
    OIDC, SCIM & PIM
  • Key Vault & KMS
    Secrets & Envelope Keys
  • Cloud SIEM, SOAR & DLP
    Posture & Threat Response
  • API Gateway & Cloud DNS
    Edge WAF & DNS Zones
  • Serverless, Workflows & IoT
    Functions, Queues & DAGs
  • SaaS, Governance & Vault
    Budgets & Off-Host GRS
  • Linux Systems & Kernel
    SSH, UFW, sysctl & OOM
  • Self-Hosted Apps & Stacks
    Caddy, Nextcloud & Auth
  • Build Web Apps with AI
  • Next.js and React
  • TypeScript and Node.js
  • npm and Tooling
  • Data and APIs
  • Deploy and Operate
  • Tutorials
  • Infrastructure
  • Automation & Regions
  • API Overview
  • API v1 Reference
    Endpoints & 23 Scopes
  • MCP Server
    129 AI Agent Tools
  • Swagger / OpenAPI 3.1
  • API Playground
  • Versioning & Sunset
  • API Token Security
    Authentication & Tokens
  • Instances API
    Compute Resources
  • Networking API
    Networks & Ports
  • Storage API Availability
    Volumes & Backups
  • Webhooks & Events
    Event Notifications
  • Rate Limits & Best Practices
    Throttling & Retries
  • sau CLI Reference
    34 Commands (v0.2)
  • Browser Web CLI
  • SDKs
  • Infrastructure as Code
    Terraform & Ansible
  • Code Examples
  • CLI & SDK Guides
  • Security Guides
  • Security at a Glance
  • Zero Trust Architecture
  • Live Trust Center
  • Compliance
Need help?

Loading documentation...

Documentation/ai web apps

Deploy Ollama, Open WebUI, and vLLM on isolated Docker nets

Serve Ollama, Open WebUI, and vLLM cleanly in Docker Compose with internal network isolation, auth lock-downs, GPU memory caps, and Caddy HTTPS proxying.

Intermediate
30 min
Updated 2026-11-23

Deploy Ready-to-Run Infrastructure in Seconds

Linux VMs from $6/mo · Pooled Virtual Datacenters from $12/mo · Use code WELCOME20 for 20% off your first order.

Browse ServersView Pricing

Commands checked on 2026-11-23 with Ollama 0.5+, vLLM 0.6+, Open WebUI 0.5+, Caddy 2.9, Ubuntu 24.04.

What you will have at the end

A production-hardened self-hosted AI inference stack pairing Open WebUI with Ollama and vLLM over an internal: true Docker bridge so model management ports (11434, 8000) are never exposed publicly, signup abuse is blocked by default, and streaming SSE responses pass cleanly through Caddy HTTPS.

Before you start

  • A Linux server with Docker Compose v2 and optional NVIDIA Container Toolkit (nvidia-ctk --version); see Managed Docker first stack.
  • Caddy reverse proxy running on external proxy_net; see Configure Caddy and Traefik reverse proxies reliably.

Steps

1. Segregate inference engines onto an internal-only Docker network

Unauthenticated Ollama (11434) or vLLM (8000) ports allow arbitrary attackers to run inference or trigger massive model pulls. Keep both engines strictly on ai_internal (internal: true) and never publish raw ports: on them:

networks:
  ai_internal:
    internal: true
  proxy_net:
    external: true

2. Launch Ollama, vLLM, and Open WebUI securely

Use an internal API key between Open WebUI and vLLM/OpenAI-compatible backends, set DEFAULT_USER_ROLE=pending (and ENABLE_SIGNUP=false after registering your own admin account), and pin memory ceilings for CPU fallback hosts:

services:
  ollama:
    image: ollama/ollama:latest
    container_name: ai-ollama
    restart: unless-stopped
    volumes:
      - ollama_data:/root/.ollama
    environment:
      - OLLAMA_KEEP_ALIVE=12h
      - OLLAMA_NUM_PARALLEL=2
      - OLLAMA_MAX_LOADED_MODELS=1
    networks:
      - ai_internal
    deploy:
      resources:
        limits:
          memory: 14G

  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    container_name: ai-open-webui
    restart: unless-stopped
    depends_on:
      - ollama
    volumes:
      - open_webui_data:/app/backend/data
    environment:
      - OLLAMA_BASE_URL=http://ollama:11434
      - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY}
      - WEBUI_AUTH=true
      - ENABLE_SIGNUP=true
      - DEFAULT_USER_ROLE=pending
    networks:
      - ai_internal
      - proxy_net

For GPU nodes using NVIDIA GPUs, add runtime: nvidia and limit gpu-memory-utilization=0.85 on vLLM so KV-cache allocation leaves headroom without CUDA OOM crashes.

3. Pre-pull models privately and disable open public signups

Generate WEBUI_SECRET_KEY=$(openssl rand -hex 32), start the stack, and create your first admin user privately before routing public DNS or set ENABLE_SIGNUP=false once your team accounts are created:

docker compose up -d
docker exec ai-ollama ollama pull qwen2.5-coder:7b
docker exec ai-ollama ollama pull nomic-embed-text

4. Proxy Open WebUI over Caddy HTTPS with unbuffered SSE and WebSockets

chat.YOUR_DOMAIN {
    reverse_proxy ai-open-webui:8080 {
        flush_interval -1
        transport http {
            response_header_timeout 300s
        }
    }
}

Check that it works

Verify that backend inference ports are unreachable externally while Open WebUI responds cleanly behind HTTPS and lists your local Ollama models:

sudo ss -tulpn | grep -E ':(11434|8000)\b' || echo "Backends isolated cleanly"
docker exec ai-ollama ollama list
curl -fsS https://chat.YOUR_DOMAIN/health

What can go wrong

  • Open WebUI returns Ollama connection failed at startup. Both containers must share ai_internal, and OLLAMA_BASE_URL must point to http://ollama:11434 (never http://localhost:11434, which resolves to the Open WebUI container itself).
  • CPU model inference swaps heavily and freezes SSH. ollama tried loading an oversized quantized model into RAM. Match quantization (e.g., Q4_K_M) so model weights plus KV cache stay under 70% of free host memory and set vm.swappiness=10.
  • Streamed tokens arrive in one delayed chunk instead of streaming word-by-word. An intermediate proxy buffers upstream bodies. Keep flush_interval -1 in Caddy or proxy_buffering off; in Nginx.

Good practice

  • Flip ENABLE_SIGNUP=false right after initial administrator provisioning to eliminate anonymous free-rider inference abuse.
  • Avoid mounting host /var/run/docker.sock inside chat UI containers unless you explicitly require local code execution.
  • Pair inference containers with Input and output guardrails for AI applications when exposing custom frontends.

Where to go next

  • Run Dify, Flowise, and Langflow workflows with PostgreSQL
  • Build RAG with PostgreSQL and pgvector HNSW
  • Fix Docker UFW bypasses with DOCKER-USER and nftables

Related Articles

Choose a model for your app by measuring it

Read more

Run Dify, Flowise, and Langflow workflows cleanly in Docker

Read more

Add a first AI feature to a Next.js app

Read more

Frequently Asked Questions

What does the Deploy Ollama, Open WebUI, and vLLM on isolated Docker nets documentation guide cover?
Serve Ollama, Open WebUI, and vLLM cleanly in Docker Compose with internal network isolation, auth lock-downs, GPU memory caps, and Caddy HTTPS proxying. It is rated intermediate difficulty (30 min) and applies to Servers Are Up infrastructure and workflows.
Can I manage or automate these steps through the Servers Are Up dashboard, REST API v1, or MCP server?
Yes. Every Servers Are Up server includes browser-based SSH, WebRDP, and VNC console access in the dashboard, plus programmatic control via the REST API v1 (/api/v1) and hosted Model Context Protocol server (/api/mcp/v1) using a scoped Personal Access Token.

Need hands-on help with Deploy Ollama, Open WebUI, and vLLM on isolated Docker nets?

Every Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.

Was this article helpful?

On this page

What you will have at the endBefore you startSteps1. Segregate inference engines onto an internal-only Docker network2. Launch Ollama, vLLM, and Open WebUI securely3. Pre-pull models privately and disable open public signups4. Proxy Open WebUI over Caddy HTTPS with unbuffered SSE and WebSocketsCheck that it worksWhat can go wrongGood practiceWhere to go next
Need Live Commands?

Open Aria in Wide Engineering Mode for distro-specific commands, compose tweaks, and isolated environment troubleshooting.

Knowledge Library