Independent Australian Storage & Infrastructure Authority

Open WebUI on NAS: Setup Guide

How to install Open WebUI on a NAS using Docker. A self-hosted ChatGPT-style interface for local LLMs via Ollama. Covers setup on Synology and QNAP with GPU passthrough notes.

How-To Configure & Protect QNAP

Open WebUI is a self-hosted, ChatGPT-style interface for running large language models locally. It connects to Ollama (a local LLM runtime) and provides a polished chat interface for models like Llama 3, Mistral, Phi-3, and others. Running it on a NAS means your AI assistant is always available on your local network, requires no API key or subscription for an Ollama-only setup; prompts and chats remain local only when cloud providers and external networked features are not enabled. This guide covers deploying the Open WebUI + Ollama Docker stack on a NAS, model selection for NAS hardware, and the GPU passthrough configuration that significantly improves inference speed on capable hardware.

In short: Deploy Ollama and Open WebUI as Docker containers on your NAS, pull a current small model sized for the NAS's available memory; Phi-3 Mini has been superseded in the Phi family by Phi-4 Mini, and access the chat interface at port 3000. LLM inference on CPU is slow. CPU-only inference speed varies with the exact NAS processor, model, quantisation, context length, memory configuration, runtime version and cooling; benchmark the intended model on the target NAS. GPU passthrough on QNAP PCIe models or dedicated GPU hardware dramatically improves speed.

Hardware Reality: What to Expect from NAS LLMs

NAS hardware is not designed for LLM inference. Setting realistic expectations:

  • Intel Celeron N5095 (TS-464) and Intel Celeron J4125 (DS423+): CPU-only inference speed for a 3B model varies with the exact processor, model build, quantisation, context length, memory configuration, runtime version and cooling. Usable for non-time-critical tasks. CPU-only responsiveness for 7B-and-larger models varies with the model build, prompt and context lengths, memory configuration and the user's latency tolerance.
  • AMD Ryzen Embedded V1500B (DS925+ and TS-473A): Performance varies with the exact model, quantisation, context length, memory configuration, runtime version and NAS thermal limits; use measured results from the target configuration.
  • QNAP with PCIe GPU (TS-473A + NVIDIA GPU): Adding a QNAP-validated low-profile GPU that fits the NAS's dimensional and power limits may enable GPU inference; verify the exact card against QNAP's compatibility list and driver support before purchase. GPU inference speed varies with the exact GPU, model, quantisation, context length, software version, PCIe configuration and whether the model fits fully in VRAM. This is the correct hardware approach for real-time LLM use on NAS hardware

For casual, non-real-time use (asking questions and waiting 30-60 seconds for a full response), CPU-only inference on a Celeron NAS is functional. For interactive use, a GPU or dedicated inference hardware is needed.

Step 1: Deploy Ollama and Open WebUI

Create a Docker Compose file at /volume1/docker/openwebui/docker-compose.yml (Synology) or /share/docker/openwebui/docker-compose.yml (QNAP):

version: '3.8'
services:
  ollama:
    image: ollama/ollama:latest
    container_name: ollama
    volumes:
      - ./ollama:/root/.ollama
    restart: unless-stopped

  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    container_name: open-webui
    depends_on:
      - ollama
    ports:
      - 3000:8080
    environment:
      - OLLAMA_BASE_URL=http://ollama:11434
    volumes:
      - ./open-webui-data:/app/backend/data
    restart: unless-stopped

Deploy with docker compose up -d. First startup downloads the Open WebUI image (~1.5GB) and starts both services. Access Open WebUI at http://[NAS-IP]:3000. Create an admin account on first access.

Step 2: Pull a Model

After Open WebUI loads, pull a model from Ollama's library. Model selection depends on your NAS RAM:

  • 4GB RAM available for Ollama: Select a current small model whose weights, context allocation and runtime overhead fit the available memory; Phi-3 Mini has been superseded in the Phi family by Phi-4 Mini. These are the smallest capable models
  • 8GB RAM available: Choose a current small model whose weights, context allocation and runtime overhead fit the available memory; Mistral 7B is no longer Mistral AI's current edge-model generation. Mistral 7B is significantly more capable than 3B models
  • 16GB RAM available: Use Llama 3.1 8B (~4.7GB) or Mistral 7B. More comfortable headroom

To pull a model in Open WebUI: Admin Settings → Connections → Ollama → Manage (wrench icon), or use the download prompt in the model selector. Enter the model name (e.g. llama3.2:3b) and click Pull. Model downloads from Ollama's registry. Sizes range from 2GB to 70GB+. First pull may take 20-60 minutes depending on model size and internet speed.

Alternatively, pull from the Ollama container CLI: docker exec -it ollama ollama pull llama3.2:3b

Step 3: GPU Passthrough (QNAP PCIe Models)

QNAP NAS models with PCIe slots (TS-473A, TS-673A) can host a GPU card for hardware-accelerated inference. The current GeForce 60-class generation is RTX 5060, but do not infer QNAP compatibility from GPU generation: select only a card validated for the NAS's drivers, dimensions and power limits.

To enable GPU passthrough in the Compose file, modify the Ollama service:

  ollama:
    image: ollama/ollama:latest
    container_name: ollama
    volumes:
      - ./ollama:/root/.ollama
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]
    restart: unless-stopped

On supported QNAP systems, install NVIDIA GPU Driver and NvKernelDriver from App Center, confirm that QTS detects the GPU, and assign it to Container Station mode. After configuration, verify GPU usage: docker exec -it ollama ollama ps. Running models should show GPU allocation.

🇦🇺 Australian Users: Hardware Notes

Recommended hardware configurations for local LLM on NAS in Australia (March 2026):

  • QNAP TS-473A (~$1,269) + NVIDIA RTX 3060 12GB (price varies by retailer and availability; verify current Australian pricing): Best self-hosted LLM NAS platform in the current AU lineup. AMD Ryzen Embedded V1500B, PCIe slot for GPU, 8GB RAM expandable. RTX 3060 inference speed varies materially with the exact model, quantisation, context length, software version and whether the model fits fully in VRAM; use a reproducible benchmark for the intended configuration. Total cost ~$1,700-1,800 AUD
  • Intel Celeron NAS (TS-464; Synology's DS423+ is discontinued, with the DS425+ now generally available). CPU only: Usability and throughput for 3B models must be measured on the exact NAS configuration and model tag; do not state a fixed range without reproducible test conditions. Acceptable for summarisation tasks and non-interactive queries. Not suitable for real-time conversation with capable models

If you want local LLM inference as a primary use case rather than an add-on, a dedicated mini-PC with integrated GPU (Intel Core Ultra or AMD Ryzen with strong integrated graphics) or a PC with a used NVIDIA card provides better price/performance than a NAS with GPU card.

See the best NAS for local LLM guide for a complete hardware comparison across AI workloads.

Related reading: our NAS buyer's guide and our NAS explainer.

Use our free NAS Sizing Wizard to get a personalised NAS recommendation.

See also: our complete QNAP NAS Australia guide.

Can I use Open WebUI with the OpenAI API instead of local models?

Yes. Open WebUI supports connecting to the OpenAI API as a backend alongside or instead of Ollama. Add your OpenAI API key under Admin Settings → Connections → OpenAI API. This lets you use models currently available to your OpenAI API account through the same interface as local models. Useful if you want a unified chat interface for both local (private, free) and cloud (capable, paid) models depending on the task.

What is the difference between Open WebUI and ChatGPT?

Open WebUI is a self-hosted interface running models on your own hardware. ChatGPT uses OpenAI's cloud-hosted GPT models. The key differences: Open WebUI can keep prompts and chats on the local network when it is configured only with local model providers and external networked features are disabled, free to run (no API costs once hardware is paid for), but limited by your hardware's inference speed. ChatGPT (and GPT-4) is significantly more capable than the open models available for local inference today, and responds in real-time. Local LLMs are best for private, offline, or cost-sensitive use cases; ChatGPT/Claude are better for capability-demanding tasks.

How much storage do LLM models take?

Model sizes: Phi-3 Mini (3.8B) ~2.3GB, Llama 3.2 3B ~2GB, Mistral 7B ~4.1GB, Llama 3.1 8B ~4.7GB, Llama 3.1 70B ~40GB. Models are stored in the Ollama volume mount on your NAS. For a selection of 3-4 models (one small, one medium), budget 10-15GB of NAS storage. Model storage and RAM requirements depend on the exact tag, quantisation and context length. Ollama lists llama3.1:70b at 43GB, and runtime memory must also accommodate context and overhead; do not present 24GB RAM as sufficient for the default 70B model. Not suitable for typical NAS hardware.

Is Ollama only for NAS?

No. Ollama runs on any Linux, macOS, or Windows machine. The NAS deployment is convenient because the NAS is always on and accessible on the local network. You can query your local LLM from any device in your home without leaving a PC running. But for best performance, running Ollama on a PC or Mac with a GPU is more capable than NAS hardware. Many homelab users run Ollama on their primary PC for performance and use the NAS for everything-always-on services like Nextcloud, Immich, and Home Assistant.

Can Open WebUI be accessed remotely?

Yes. Configure HTTPS via NGINX Proxy Manager or a Cloudflare Tunnel. Same approach as other self-hosted NAS services. Once accessible via HTTPS, you can query your local LLM from anywhere. Note that remote access routes your queries through your internet connection (sending text queries out, receiving responses in). For documents that must remain entirely off-internet, keep access LAN-only. If remote access is required, use a securely configured VPN and understand that encrypted traffic still traverses the internet.

Curious which NAS hardware handles local AI inference and what to expect from each model? The best NAS for local LLM guide covers hardware requirements, model selection, and GPU options.

What to read next