Skip to content

Set Up Ollama with Open WebUI on a Linux Server – Host Your Own AI Models

Set up Ollama with Open WebUI on your Linux server: in just a few minutes as a One-Click App or manually with Docker Compose. Use your own AI models in your browser without an account with an AI provider.

26 November 20265 min read0 Views0 helpful

Introduction

Ollama is an open-source tool that lets you run AI language models such as Llama, Qwen, Gemma, or Mistral on your own server. Your prompts and responses stay on your server, and you don't need an account with an AI provider. You can use Open WebUI as the interface: chat with your models in your browser, much like with popular AI chat services, download new models, and manage additional users.

In this guide, we'll show you two ways to get started: the easy way using your VPS's One-Click Apps, and manual installation with Docker Compose.

The easy way: Ollama with Open WebUI as a One-Click App

The quickest way to set up your own AI chat is through your VPS's One-Click Apps. The app installs Ollama and Open WebUI together and connects them. ZapX sets up your domain and HTTPS for you, so you don't need to use the console.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set up One-Click Apps for instructions.
  • Enough memory for the model you want to use. A model uses slightly more memory when running than its download size. For example, llama3.2:1b requires around 1.5 GB when running, despite its 1.3 GB download size. Open WebUI and the rest of your system also need memory.
Info

AI on the CPU The One-Click App doesn't use a graphics card; Ollama runs on your VPS's CPU. So start with a small model such as llama3.2:1b or llama3.2:3b. Large models need a lot of memory and respond noticeably more slowly on the CPU.

Install

  1. Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
  2. Search for Ollama in the App catalog, then click Install app next to Ollama with Open WebUI.
  3. Leave Use a custom subdomain or zap.cloud enabled and choose an address. With a domain, Open WebUI is accessible over HTTPS; without one, it's only accessible over HTTP.
  4. You don't need to enter any other details. Click Queue installation. The app will be online in one to two minutes.

Only Open WebUI is accessible. Ollama itself runs in the background and is only accessible to Open WebUI, not from the internet.

Warning

Open the app right after installation Open WebUI doesn't create an admin account in advance. Whoever visits the address first creates the admin account and then manages all users and settings. So open the app at its address as soon as it's installed and create your account.

First visit: Create an admin account

Open your app's address and click “Get started.” Enter your name, email address, and a password, then click “Create Admin Account.” You'll then go straight to the chat.

Download your first model

No models are included after installation. You can download one directly in Open WebUI:

  1. Click “Select a model” in the chat.
  2. Enter the name of a model from the Ollama model library, for example, llama3.2:1b.
  3. Click “Download "llama3.2:1b"”. Open WebUI will show the progress, and then the model will be available in the selection menu.

Select the model and ask your first question. You can download more models in the same way.

Tip

“does not support tools” error Open WebUI uses features that require the model to support tool calls. If the chat responds with “… does not support tools,” choose a model that supports tools. In the Ollama model library, these models are marked with “tools,” for example, llama3.2 or qwen3. In our test, llama3.2:1b worked right away, while gemma3:1b stopped with this message.

App updates and settings

To check whether an update is available for your installation, open the app's settings (gear icon), go to App update, and click Check for updates. If there's a new version, install it by clicking Apply update. Your accounts, chats, and downloaded models will be kept because they're stored in separate volumes. You can ignore the “A new version is available” message in Open WebUI. New versions are delivered through App update once they're available in the App Catalog.

You can change the app's address under App actions. You can also stop, reinstall, or uninstall the app there.

Manual installation

The rest of this guide covers manual installation from the console using Docker Compose, for example, if you want to integrate Ollama into an existing server environment. It's based on the Ollama Docker guide and the Open WebUI Quick Start.

Requirements

  • A Linux server running Debian or Ubuntu that you can access via SSH.
  • Docker with the Compose plugin. See our guide Set up Docker for instructions on installing Docker.

Start Ollama and Open WebUI

Create a directory and create a compose.yaml file in it:

Code
mkdir ollama
cd ollama
nano compose.yaml

Add the following content. It combines the Ollama CPU container with Open WebUI and connects them through Docker's internal network:

Code
services:
  ollama:
    image: ollama/ollama
    container_name: ollama
    volumes:
      - ollama:/root/.ollama
    restart: unless-stopped
  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    container_name: open-webui
    ports:
      - "3000:8080"
    environment:
      - OLLAMA_BASE_URL=http://ollama:11434
      - WEBUI_SECRET_KEY=dein-geheimer-schluessel
    volumes:
      - open-webui:/app/backend/data
    depends_on:
      - ollama
    restart: unless-stopped
volumes:
  ollama:
  open-webui:

Replace dein-geheimer-schluessel with a random value generated with openssl rand -hex 32. Save the file and start both containers:

Code
docker compose up -d

With this setup, Ollama is only accessible to Open WebUI. Open WebUI runs on port 3000. Open http://<IP-Adresse deines Servers>:3000 in your browser and create your admin account as described above in First visit: Create an admin account. You can download models from the model selector as described above, or directly from the console:

Code
docker exec -it ollama ollama pull llama3.2:1b
Info

Firewall and HTTPS If a firewall is active on your server, port 3000 (TCP) must be reachable; see Manage the firewall on Linux. For ongoing use, you should run Open WebUI with a domain over HTTPS behind a reverse proxy; see Set up a reverse proxy with nginx. You should then bind the port locally only, using "127.0.0.1:3000:8080" instead of "3000:8080".

Update Ollama and Open WebUI

Go to the directory and pull the new versions. Your models and chats will be kept in the volumes:

Code
cd ollama
docker compose pull
docker compose up -d

Conclusion and further resources

Congratulations! Ollama is now running with Open WebUI on your server, and you can chat with your own AI models. Find more information here:

Do you have questions that aren't answered here? Our support team is happy to help every day! 🙂

Free tools

Related tools for servers and developers

View all

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.