FREE TOOLS · STARTER STACK · CHECKED 27 NOVEMBER 2026

Ollama for the models, Open WebUI for team chat, n8n for automations and PostgreSQL with pgvector for your documents, in one Docker Compose file with pinned versions, placeholder secrets and the security settings we'd insist on. Copy, paste, run.

Paper-craft illustration of a stack on a dark background: a server at the bottom, an orange chat bubble above it, a workflow board with connected nodes, and a database cylinder on top

001 / THE SHORT ANSWER

THE STACK · ONE COMPOSE FILEON YOUR BOX
  • RUNS THE MODELSOllamaollama/ollama:0.40.18
  • TEAM CHATOpen WebUIghcr.io/open-webui/open-webui:v0.13.5
  • AUTOMATIONSn8nn8nio/n8n:2.49.7
  • DATABASE AND VECTOR STOREPostgreSQL + pgvectorpgvector/pgvector:0.8.7-pg18
  • VECTOR DATABASEQdrantOPTIONALqdrant/qdrant:v1.20.2
  • HTTPSCaddyOPTIONALcaddy:2.11.9

A local AI stack is a set of open source services that gives your team ChatGPT-style chat and AI automations on hardware you control, with prompts and documents never leaving it. The version on this page uses four services in Docker: Ollama runs the models, Open WebUI is the chat staff log in to, n8n runs automations, and PostgreSQL with pgvector stores n8n's data and your document embeddings.

The software is free to use inside your business. What it costs:

  • ✓Hardware with enough memory for the model you want: a recent Mac, a PC with a decent graphics card, or a small GPU server
  • ✓Setup time from someone comfortable in a terminal, using the files and steps below
  • ✓Ongoing care: backups, updates and someone who owns security, like any server

New to running models locally? Our post on running a 744B model on a laptop explains where local AI is heading and why it matters for privacy.

002 / HOW IT CONNECTS

Open WebUI and n8n both send prompts to Ollama over a private Docker network; only those two have screens people use. Ollama and the databases never face the network. Caddy, if you add it, is the only thing that listens on the office LAN, and nothing listens on the internet.

How the local AI starter stack connects: browsers and apps reach Open WebUI and n8n, both call Ollama, n8n stores data in PostgreSQL with pgvector or QdrantStaff browsersLAN or VPNEmail and appsIMAP, Slack, CRMCaddyoptional · HTTPSOpen WebUIteam chat · :3000n8nautomations · :5678Ollamamodels · :11434Postgres+ pgvector · :5432Qdrantoptional · :6333PRIVATE DOCKER NETWORK · NO PUBLIC PORTS
Solid lines run by default. Dashed pieces are optional profiles in the same compose file.

003 / THE PIECES

Four services do the work and two are optional. Each image below is the official one named in that project's own Docker docs or README, pinned to the latest stable release we found on 27 November 2026. For the longer reviews of alternatives, see our best open source local AI tools and best self-hosted automation tools.

OllamaRUNS THE MODELS

MIT
github.com/ollama/ollama

Downloads open-weight models and answers requests on a REST API. Everything else in the stack talks to it.

Image
ollama/ollama:0.40.18
Port
11434 (127.0.0.1 only)
Connects
Open WebUI and n8n call http://ollama:11434 on the internal Docker network.
Watch
Its API has no login, so it must never be reachable from the network. OLLAMA_NO_CLOUD=1 keeps it to local models only.

Open WebUITEAM CHAT

Open WebUI License (GitHub: Other)
github.com/open-webui/open-webui

The ChatGPT-style screen staff log in to: accounts and roles, chat history, document upload and model switching.

Image
ghcr.io/open-webui/open-webui:v0.13.5
Port
3000 → 8080
Connects
Calls Ollama for answers; keeps its own users, chats and uploaded documents in its data volume.
Watch
The first account becomes admin. Branding must stay above 50 users in a rolling 30 days. :main is a rolling build, so pin a version.

n8nAUTOMATIONS

Sustainable Use License (fair-code)
github.com/n8n-io/n8n

Visual workflow builder: triggers from email, forms, webhooks and hundreds of apps, with AI nodes that can use a local model.

Image
n8nio/n8n:2.49.7
Port
5678
Connects
Uses Ollama through its Ollama credential, stores workflows in PostgreSQL, and reads or writes vectors in pgvector or Qdrant.
Watch
Free for internal business use, not for reselling as a hosted service. Back up N8N_ENCRYPTION_KEY or saved credentials are lost.

PostgreSQL + pgvectorDATABASE AND VECTOR STORE

PostgreSQL License
github.com/pgvector/pgvector

PostgreSQL 18 with the vector extension added: n8n's production database plus a separate database for document embeddings.

Image
pgvector/pgvector:0.8.7-pg18
Port
5432 (internal only)
Connects
n8n connects to host postgres. Nothing outside Docker can reach it.
Watch
Major PostgreSQL upgrades need a dump and restore. Enable the extension once per database with CREATE EXTENSION vector.

QdrantVECTOR DATABASE (OPTIONAL)

Apache-2.0
github.com/qdrant/qdrant

A dedicated vector search engine, for larger document sets or heavy filtering, instead of pgvector.

Image
qdrant/qdrant:v1.20.2
Port
6333 (internal only)
Connects
n8n's Qdrant Vector Store node calls http://qdrant:6333 with the API key from .env.
Watch
Self-hosted Qdrant accepts anyone who can reach it unless you set an API key, and traffic is unencrypted by default.

CaddyHTTPS (OPTIONAL)

Apache-2.0
github.com/caddyserver/caddy

A reverse proxy that gives Open WebUI and n8n proper HTTPS addresses on your office network.

Image
caddy:2.11.9
Port
80, 443 (office network)
Connects
Forwards chat.ai.internal to Open WebUI and n8n.ai.internal to n8n. Ollama and the databases stay hidden behind it.
Watch
.internal names use Caddy's own certificate authority, so staff devices must trust its root certificate. Never port-forward it.

004 / HARDWARE

Memory decides which model you can run; everything else in the stack is light. Open WebUI, n8n and PostgreSQL together fit comfortably in a few gigabytes. Sizes below are Ollama's download sizes for each model tag. For an exact estimate, use our local LLM hardware calculator.

TRY IT

One or two people, no GPU

Recent Mac with Apple Silicon or a PC/mini server with 16 GB RAM, SSD with 50 GB free

qwen3:4b (2.5 GB), gemma3:4b (3.4 GB)

Fine for drafting, summarising and classifying short emails. Slower than a graphics card, but usable for short jobs.

SMALL TEAM

Five to fifteen people

Linux box with 32 GB RAM and an NVIDIA card with 12–16 GB VRAM, or a Mac with 32 GB+ unified memory

qwen3:8b (5.2 GB), gemma3:12b (8.2 GB), qwen3:14b (9.3 GB)

A 12 GB card comfortably holds an 8B model; 16 GB takes a 14B model. The level most small businesses should aim for.

HEAVIER USE

Bigger models, more at once

A card with 24 GB VRAM or more (or two cards) and plenty of system RAM

gemma3:27b (17 GB), qwen3:32b (20 GB)

A 32B model at 4-bit is borderline on 24 GB. When many people or workflows hit it at once, look at vLLM instead of Ollama.

Two platform notes. On a Mac, Docker Desktop can't give containers the Apple GPU (its GPU passthrough only works on Windows with WSL 2), so run the native Ollama app and let the rest run in Docker. On Windows, an NVIDIA card works inside Docker through WSL 2 with a current driver.

005 / THE FILES

Three files in one folder: compose.yaml, .env and caddy/Caddyfile. We checked the compose file with docker compose config (Docker Compose v2.35) on 27 November 2026, with and without the optional profiles. We didn't start it for you, so test it on your own machine before staff depend on it.

What the file does on purpose:

  • ✓Every web port is bound to 127.0.0.1, so nothing is reachable from the network until you choose to add Caddy or a VPN.
  • ✓PostgreSQL and Qdrant publish no ports at all; only containers on the stack's network can reach them.
  • ✓Secrets come from .env and compose refuses to start if a required one is missing.
  • ✓Image tags are pinned. Open WebUI's docs warn that :main and :latest are a rolling build, not the newest stable release, and Qdrant's own example uses :latest; pinned tags only change when you change them.
  • ✓Optional services sit behind profiles, switched on with one line in .env.
yamlcompose.yaml
# Local AI starter stack: Ollama + Open WebUI + n8n + PostgreSQL/pgvector
# Optional profiles: qdrant (vector database), https (Caddy reverse proxy)
# Image tags checked against each project's releases on 27 November 2026.
# Change a tag on purpose (read the release notes, back up first), never by accident.

name: local-ai

services:
  ollama:
    image: ollama/ollama:0.40.18
    profiles: ["ollama"]          # on a Mac, leave this profile off and run the Ollama app instead
    restart: unless-stopped
    environment:
      - OLLAMA_NO_CLOUD=1         # local models only: switches off Ollama's cloud models and web search
    volumes:
      - ollama:/root/.ollama
    ports:
      - "127.0.0.1:11434:11434"   # this machine only; Ollama's API has no login
    # NVIDIA GPU: uncomment. Linux needs the NVIDIA Container Toolkit; Windows needs Docker Desktop (WSL 2) and a current driver
    # deploy:
    #   resources:
    #     reservations:
    #       devices:
    #         - driver: nvidia
    #           count: all
    #           capabilities: [gpu]

  open-webui:
    image: ghcr.io/open-webui/open-webui:v0.13.5
    restart: unless-stopped
    environment:
      - OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://ollama:11434}
      - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:?set WEBUI_SECRET_KEY in .env}
      - WEBUI_SESSION_COOKIE_SECURE=${WEBUI_SESSION_COOKIE_SECURE:-false}
    extra_hosts:
      - host.docker.internal:host-gateway
    volumes:
      - open-webui:/app/backend/data
    ports:
      - "127.0.0.1:3000:8080"     # http://localhost:3000

  postgres:
    image: pgvector/pgvector:0.8.7-pg18
    restart: unless-stopped
    environment:
      - POSTGRES_USER=${POSTGRES_USER:?set POSTGRES_USER in .env}
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env}
      - POSTGRES_DB=${POSTGRES_DB:?set POSTGRES_DB in .env}
      - PGDATA=/var/lib/postgresql/data
    volumes:
      - db-storage:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
      interval: 5s
      timeout: 5s
      retries: 10
    # no ports: only n8n (and you, via docker compose exec) can reach it

  n8n:
    image: n8nio/n8n:2.49.7
    restart: unless-stopped
    depends_on:
      postgres:
        condition: service_healthy
    environment:
      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=postgres
      - DB_POSTGRESDB_PORT=5432
      - DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
      - DB_POSTGRESDB_USER=${POSTGRES_USER}
      - DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
      - N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY:?set N8N_ENCRYPTION_KEY in .env}
      - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
      - N8N_DIAGNOSTICS_ENABLED=false
      - GENERIC_TIMEZONE=${TZ:-Australia/Sydney}
      - TZ=${TZ:-Australia/Sydney}
      - N8N_HOST=${N8N_HOST:-localhost}
      - N8N_PROTOCOL=${N8N_PROTOCOL:-http}
      - N8N_PROXY_HOPS=${N8N_PROXY_HOPS:-0}
      - N8N_WEBHOOK_URL=${N8N_WEBHOOK_URL:-http://localhost:5678/}
    extra_hosts:
      - host.docker.internal:host-gateway
    volumes:
      - n8n-data:/home/node/.n8n
    ports:
      - "127.0.0.1:5678:5678"     # http://localhost:5678

  qdrant:
    image: qdrant/qdrant:v1.20.2
    profiles: ["qdrant"]
    restart: unless-stopped
    environment:
      - QDRANT__SERVICE__API_KEY=${QDRANT_API_KEY}
    volumes:
      - qdrant-storage:/qdrant/storage
    # no ports: n8n reaches it at http://qdrant:6333 on the internal network

  caddy:
    image: caddy:2.11.9
    profiles: ["https"]
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
      - "443:443/udp"
    volumes:
      - ./caddy:/etc/caddy
      - caddy-data:/data
      - caddy-config:/config

volumes:
  ollama:
  open-webui:
  db-storage:
  n8n-data:
  qdrant-storage:
  caddy-data:
  caddy-config:
env.env (placeholders only)
# .env for the local AI starter stack. Keep it next to compose.yaml.
# Replace every placeholder secret (the command in step 3 does it for you). Never commit or email this file.

# Which optional services to run. Add qdrant and/or https when you need them, e.g. ollama,qdrant,https
# On a Mac: leave ollama out (COMPOSE_PROFILES=) and run the Ollama app, then set OLLAMA_BASE_URL below.
COMPOSE_PROFILES=ollama
# OLLAMA_BASE_URL=http://host.docker.internal:11434

TZ=Australia/Sydney

POSTGRES_USER=n8n
POSTGRES_PASSWORD=change-me
POSTGRES_DB=n8n

# n8n encrypts saved credentials with this key. Lose it and every connection must be re-entered.
N8N_ENCRYPTION_KEY=change-me
# Signs Open WebUI logins. Changing it signs everyone out.
WEBUI_SECRET_KEY=change-me
# Only used with the qdrant profile.
QDRANT_API_KEY=change-me

# Only with the https profile (Caddy). Use the names in caddy/Caddyfile.
# N8N_HOST=n8n.ai.internal
# N8N_PROTOCOL=https
# N8N_PROXY_HOPS=1
# N8N_WEBHOOK_URL=https://n8n.ai.internal/
# WEBUI_SESSION_COOKIE_SECURE=true
caddycaddy/Caddyfile (optional)
# caddy/Caddyfile: HTTPS for the office network.
# .internal names get certificates from Caddy's own local CA (no internet needed).
# Point these names at the server's LAN IP in your router's DNS or each device's hosts file.

chat.ai.internal {
	reverse_proxy open-webui:8080
}

n8n.ai.internal {
	reverse_proxy n8n:5678
}

006 / STEP BY STEP

Ten steps, each one checked before you move on. Commands are for a Mac or Linux terminal; on Windows, run the same commands inside WSL 2.

  1. Install Docker

    Mac: install Docker Desktop, plus the Ollama app from ollama.com (see the hardware notes above). Linux: install Docker Engine and the Compose plugin from Docker's docs for your distribution. Windows: turn on WSL 2, install Docker Desktop with the WSL 2 backend, and run everything below in the Ubuntu terminal, keeping the folder in your Linux home directory rather than under /mnt/c.

    powershellWindows only: WSL 2
    # In PowerShell as administrator (Windows 10 or 11), then restart:
    wsl --install
    # Install Docker Desktop, turn on the WSL 2 backend and Ubuntu integration,
    # then run every command on this page in the Ubuntu terminal.
    bashCheck Docker is ready
    docker --version
    docker compose version
  2. Create the folder and files

    Create the folder, then paste the three files from the section above into it with any text editor.

    bashCreate the folder
    mkdir -p ~/local-ai/caddy && cd ~/local-ai
    # Save the three files from this page here:
    #   ~/local-ai/compose.yaml
    #   ~/local-ai/.env
    #   ~/local-ai/caddy/Caddyfile
  3. Generate the secrets

    This replaces each change-me with a 64-character random value and makes .env readable only by you. On a Mac, also set COMPOSE_PROFILES= (empty) and uncomment OLLAMA_BASE_URL=http://host.docker.internal:11434.

    bashGenerate secrets
    cd ~/local-ai
    for k in POSTGRES_PASSWORD N8N_ENCRYPTION_KEY WEBUI_SECRET_KEY QDRANT_API_KEY; do
      sed -i.bak "s|^$k=.*|$k=$(openssl rand -hex 32)|" .env
    done
    rm .env.bak
    chmod 600 .env
    grep -c change-me .env   # prints 0 when every placeholder is replaced
  4. Validate and start the stack

    The first start downloads the images, which takes a few minutes. Every service should show as running; PostgreSQL shows healthy before n8n starts.

    bashValidate and start
    docker compose config --quiet && echo "compose file OK"
    docker compose up -d
    docker compose ps
  5. Pull your first model

    Start with qwen3:4b: a 2.5 GB download, Apache 2.0 licensed, and good enough to summarise and sort email on modest hardware. Add nomic-embed-text (274 MB, Apache 2.0) for document search. Qwen3 can “think” before answering; "think": false in API calls keeps replies short. Other model families such as Llama and Gemma ship under their own licence terms, so read them before business use.

    bashPull models (Linux, Windows)
    docker compose exec ollama ollama pull qwen3:4b
    docker compose exec ollama ollama pull nomic-embed-text
    docker compose exec ollama ollama list
    bashPull models (Mac, native app)
    # Mac with the Ollama app installed (COMPOSE_PROFILES= and OLLAMA_BASE_URL set in .env)
    ollama pull qwen3:4b
    ollama pull nomic-embed-text
    bashTest Ollama
    curl http://localhost:11434/api/chat -d '{
      "model": "qwen3:4b",
      "messages": [{"role": "user", "content": "In one sentence, what is a tax invoice in Australia?"}],
      "think": false,
      "stream": false
    }'
  6. Create the Open WebUI admin and connect Ollama

    Do this straight away: the first account created becomes the admin, then sign-ups switch off and new users wait as pending until you approve them. In the admin settings, under Connections, the Ollama address should read http://ollama:11434 (or http://host.docker.internal:11434 on a Mac), and qwen3:4b should appear in the model picker. Upload a document in a chat to try retrieval; Open WebUI keeps its own document index in its data volume.

  7. Set up n8n and its Ollama credential

    Open http://localhost:5678 and create the owner account. Then add a credential of type Ollama with the base URL http://ollama:11434. Not localhost: inside a container, localhost is the container itself. n8n's Ollama Chat Model and Embeddings Ollama nodes use this credential.

  8. Create the vector database

    Keep vectors in their own database so n8n's tables and your documents don't mix. In n8n, a Postgres credential with host postgres, database vectors and the user and password from .env feeds the PGVector Vector Store node. Prefer Qdrant? Add it to COMPOSE_PROFILES and use the Qdrant Vector Store node with http://qdrant:6333 and your QDRANT_API_KEY.

    bashCreate the vectors database
    docker compose exec postgres sh -c 'psql -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "CREATE DATABASE vectors;"'
    docker compose exec postgres sh -c 'psql -U "$POSTGRES_USER" -d vectors -c "CREATE EXTENSION IF NOT EXISTS vector;"'
    bashOptional: switch on Qdrant and Caddy
    # Add Qdrant and/or Caddy: edit this line in .env, then apply it
    COMPOSE_PROFILES=ollama,qdrant,https
    
    docker compose up -d
  9. Add HTTPS for staff (optional)

    For staff on the office network, Caddy serves https://chat.ai.internal and https://n8n.ai.internal. Names ending in .internal get certificates from Caddy's own local certificate authority, with no internet needed. Point both names at the server's LAN address in your router's DNS, uncomment the Caddy lines in .env, run docker compose up -d, then install Caddy's root certificate on each staff device. For people outside the office, use a VPN. Don't port-forward 80 or 443.

    bashExport Caddy's root certificate
    # Copy Caddy's local root certificate out, then install it on each staff device
    docker compose cp caddy:/data/caddy/pki/authorities/local/root.crt ./caddy-root.crt
  10. Schedule backups and updates

    Run this nightly (cron on Linux, a scheduled task in WSL) and copy the backups off the machine. Test a restore once, before you need it. To update, back up, read the release notes, change one tag in compose.yaml, then pull and restart.

    bashBack up
    cd ~/local-ai && mkdir -p backups
    # 1. Database (n8n workflows, executions, credentials, your vectors)
    docker compose exec -T postgres sh -c 'pg_dumpall -U "$POSTGRES_USER"' > backups/postgres-$(date +%F).sql
    # 2. Open WebUI and n8n data folders (stop them briefly for a clean copy)
    docker compose stop open-webui n8n
    for v in open-webui n8n-data; do
      docker run --rm -v local-ai_$v:/data:ro -v "$PWD/backups":/backup alpine:3.22 \
        tar czf /backup/$v-$(date +%F).tgz -C /data .
    done
    docker compose start open-webui n8n
    # 3. The .env file holds the n8n encryption key: keep a copy somewhere private, off this machine
    cp .env backups/env-$(date +%F)
    chmod 600 backups/*
    bashUpdate a pinned version
    # 1. Back up first (above). 2. Read the release notes. 3. Change the tag in compose.yaml.
    docker compose pull
    docker compose up -d
    docker compose ps
    docker image prune   # removes the old images once you're happy

007 / FIRST WORKFLOW

Sort and summarise incoming enquiries. It's useful from day one, low risk because a person still reads every email, and it shows quickly whether a small local model is good enough for your work.

  1. Email Trigger (IMAP) watches your enquiries inbox.
  2. Text Classifier with an Ollama Chat Model sub-node (qwen3:4b) sorts each email into quote request, booking change, complaint, accounts or other.
  3. Each branch runs a Basic LLM Chain that writes a two-line summary and a suggested next step.
  4. The result goes where your team already works: a Slack or Teams message, a CRM note, or a row in a shared sheet. Complaints go to a person straight away.

Before building it, test the same job from the terminal. Ollama's structured outputs force the reply into JSON your workflow can rely on:

bashClassify an enquiry with Ollama
curl http://localhost:11434/api/chat -d '{
  "model": "qwen3:4b",
  "stream": false,
  "think": false,
  "messages": [
    {"role": "system", "content": "Classify the email for a small Australian business. Reply only with JSON."},
    {"role": "user", "content": "Hi, can you quote for replacing two split-system air conditioners in Parramatta next week?"}
  ],
  "format": {
    "type": "object",
    "properties": {
      "category": {"type": "string", "enum": ["quote_request", "booking_change", "complaint", "accounts", "other"]},
      "summary": {"type": "string"},
      "urgent": {"type": "boolean"}
    },
    "required": ["category", "summary", "urgent"]
  }
}'

Run twenty real emails through it and count how many land in the right category. If it's not good enough, try qwen3:8b before you add complexity. A second idea once this works: load your price list and FAQs into pgvector with Embeddings Ollama, and let the workflow draft replies that quote them. For the bigger picture on document search, see our nine open source RAG tools.

008 / SECURITY CHECKLIST

Keep every port private, put logins on everything people use, and treat backups and updates as part of the job. The most common mistake is a model API left open to the network.

  • ✓No public portsEvery port is bound to 127.0.0.1 or not published at all. Never port-forward from your router. Remote staff come in over a VPN or an SSH tunnel.
  • ✓Admin accounts firstCreate the Open WebUI admin and the n8n owner before anyone else can reach the server. Leave Open WebUI sign-ups off, or new users pending until approved, and turn on two-factor sign-in in both once HTTPS is set up.
  • ✓Ollama stays privateOllama has no login. It must only be reachable by Open WebUI and n8n on the Docker network, and on localhost for your own testing.
  • ✓Secrets out of the fileRandom values in .env, chmod 600, never in Git or email. Changing WEBUI_SECRET_KEY signs everyone out; losing N8N_ENCRYPTION_KEY loses every saved credential.
  • ✓Qdrant key onSelf-hosted Qdrant accepts anyone who can reach it until an API key is set, and its traffic is unencrypted by default. Keep it internal and keep the key set.
  • ✓Backups you've restoredNightly database dump plus the Open WebUI and n8n volumes and the .env file, copied off the machine. A backup you've never restored is a guess.
  • ✓Updates on a scheduleThese projects release often and fix security bugs. Check monthly, back up, change one pinned tag, test. PostgreSQL major versions need a dump and restore.
  • ✓Know what goes inDecide whether personal or client information belongs on the box. The Privacy Act still applies, including APP 11's duty to protect it.

LICENCES: READ BEFORE YOU ROLL IT OUT

n8n uses the Sustainable Use License, a fair-code licence, not an OSI open source one. It's free for your own internal business use; you can't host n8n as a service for customers to build their own workflows, or white-label it. Some features, such as single sign-on, need a paid plan.

Open WebUI uses its own BSD-3-style licence with a branding clause: once you pass 50 users in a rolling 30 days, you must keep the Open WebUI name and logo unless you have permission or an enterprise licence.

Ollama is MIT; Qdrant and Caddy are Apache 2.0; pgvector uses the PostgreSQL licence. Models are separate: Qwen3 and nomic-embed-text are Apache 2.0, while Llama and Gemma have their own terms. This is a plain-English summary, not legal advice.

009 / TROUBLESHOOTING

Start with the logs: almost every problem is a wrong address between containers, a missing secret, or a model too big for the machine.

bashFirst look
docker compose ps
docker compose logs --tail 100 open-webui
docker compose logs --tail 100 n8n
docker compose exec ollama ollama ps   # which model is loaded, and on CPU or GPU
bashReach the server safely from a laptop
# From your laptop: reach the server's n8n and Open WebUI without opening any port
ssh -L 5678:localhost:5678 -L 3000:localhost:3000 you@your-server
# then browse to http://localhost:5678 and http://localhost:3000
Open WebUI shows no models
You haven't pulled one yet, or the Ollama address is wrong. Pull qwen3:4b, then check the connection reads http://ollama:11434 (Mac: http://host.docker.internal:11434) and look at docker compose logs open-webui.
n8n can't reach Ollama
The credential says localhost. Use http://ollama:11434, the container name; on a Mac with the native app, http://host.docker.internal:11434.
n8n complains about a secure cookie
You opened it by IP address over plain http. n8n only sends its login cookie over HTTPS by default (N8N_SECURE_COOKIE is true). Use localhost, an SSH tunnel, or the Caddy profile; don't switch the setting off on a shared network.
Answers are very slow
The model is running on the CPU or is too big for your memory. Check with ollama ps, try a smaller tag, and on a Mac use the native app. Ollama's default context window is 4,096 tokens; raising it costs memory.
compose says a variable is missing
That's deliberate: a required secret in .env is empty. Run the secrets step again, then docker compose config --quiet.
Port is already allocated
Something else uses 3000, 5678 or 11434. Change the left-hand number only, for example 127.0.0.1:3001:8080.
PostgreSQL won't start after an upgrade
A new major version can't read the old data folder. Go back to the previous tag, take a pg_dumpall, and restore it into the new version.

010 / WHEN TO GET HELP

When staff will rely on it every day, when client or personal information goes into it, or when it needs to connect to systems like your CRM, Xero or Microsoft 365. One person trying the stack on a spare Mac doesn't need a consultant. A shared server holding client files needs someone who owns its security, backups and updates.

We're a Sydney team working remotely across Australia and New Zealand. Our private AI in Australia work covers models hosted on your hardware or onshore, with answers traced to their sources, and our n8n consultants build and maintain the workflows that put a local model to work. Every build is scoped and priced in writing. Tell us what you're planning.

Building out the rest of a free stack? See our pick of open source business apps, the local AI tools list for other runners and chat apps, and the self-hosted automation tools if n8n's licence doesn't suit you.

011 / QUESTIONS

Anything else is quicker to answer on a call. Thirty minutes, free, with the people who would build it.

One Docker Compose file that starts Ollama (runs the models), Open WebUI (the team chat), n8n (automations) and PostgreSQL with pgvector (n8n's database and your vector store). Save the compose.yaml and .env from this page into one folder, generate the secrets, run docker compose up -d, pull a model, then create the admin accounts in Open WebUI and n8n before anyone else can reach them.

Tell us who will use it, what data goes in and what hardware you have. In thirty minutes we'll tell you whether this stack fits, what we'd change, and what a supported build would involve.

Book a free call→