n8n + Ollama + Qdrant
n8n runs the workflows and keeps its data in Postgres; Ollama is the local model its AI nodes call; Qdrant is the vector store for retrieval workflows. The same three-part set n8n's own starter kit uses, with every image pinned.
Run it
Save the compose file
curl -fsSL https://archestack.com/stacks/n8n-ollama-qdrant/compose.yaml -o compose.yamlWrite a .env with fresh values for POSTGRES_PASSWORD, N8N_ENCRYPTION_KEY
printf 'POSTGRES_PASSWORD=%s\nN8N_ENCRYPTION_KEY=%s\n' "$(openssl rand -hex 16)" "$(openssl rand -hex 32)" > .envStart it
docker compose up -dOpen
http://127.0.0.1:5678: n8n. First:docker compose exec ollama ollama pull llama3.2; in n8n use http://ollama:11434 and http://qdrant:6333 as the hosts.
Needs Docker Compose v2 (started here with v5.6). Every port is bound to 127.0.0.1, so nothing is reachable from your network until you put a reverse proxy in front on purpose. For a GPU, add the GPU reservation to the ollama service. The file itself.
What each part does
- n8n: the workflow engine. custom license, score 94 on Best of Open-Source AI.
- Ollama: the local model the AI nodes call. MIT, score 92 on Best of Open-Source AI.
- Qdrant: the vector store for retrieval. Apache-2.0, score 85 on Best of Open-Source AI.
Why these together: n8n ships Ollama and Qdrant nodes and its own self-hosted AI starter kit combines the three. Source ↗ (opens in a new tab)
Pinned images
postgres:17-alpineollama/ollama:0.40.16qdrant/qdrant:v1.20.2n8nio/n8n:2.48.6
A weekly job checks that each tag still exists and flags a pin two or more major versions behind its project’s latest release. A newer release is not tested here: change a tag on purpose, not by latest.
What we checked
Started on ubuntu-lan (x86-64, CPU only, Docker 29.9.2, Compose v5.6.1) on from this exact file, with fresh volumes. Every container came up healthy and each check below passed. The box already runs its own services on ports 3000 and 4000, so the run shifted the host ports by 10000; nothing else differed. No model was pulled, so no chat or document upload was tried.
- n8n is healthy on 5678
- n8n reaches Ollama
- n8n reaches Qdrant
Get it set up (opens in a new tab)Opens Archestack Studio with n8n named. Our own paid service; it never changes a rank.