Local automations: n8n and Ollama
# Local automations: n8n and Ollama code: 10wkyv1 | type: stack | language: en | licence: MIT | version: v1 description: docker-compose stack to automate with a local AI: n8n (workflows) and Ollama (model), without sending data to an external API. page: https://contextetech.com/en/stacks/local-automations-n8n-ollama-10wkyv1 mcp: connect https://contextetech.com/mcp then call load_resource with code "10wkyv1" (or ask "load 10wkyv1") json: https://contextetech.com/api/resources/contextetech--local-automations-n8n-ollama python: pip install contexte && contexte get 10wkyv1 citation (required by the licence): contextetech. (2026). Local automations: n8n and Ollama (Version 1) [Stack]. Contexte Tech. https://contextetech.com/en/stacks/local-automations-n8n-ollama-10wkyv1
docker-compose stack to automate with a local AI: n8n (workflows) and Ollama (model), without sending data to an external API.
Access Medium
- Read files or data
- Modify or delete files
- Send data over the internet
- Run commands on the machine : No
Services
- n8n: workflow editor
- Ollama: local model, reachable at http://ollama:11434
Ports : 5678 (n8n)
1. docker compose up -d 2. docker compose exec ollama ollama pull llama3.1 3. Open http://localhost:5678; in n8n's Ollama nodes, use the address http://ollama:11434.
docker-compose.yml
services:
ollama:
image: ollama/ollama
volumes:
- ollama:/root/.ollama
n8n:
image: n8nio/n8n
depends_on: [ollama]
environment:
- GENERIC_TIMEZONE=America/New_York
volumes:
- n8n:/home/node/.n8n
ports:
- "5678:5678"
volumes:
ollama:
n8n:- Identifier
- contextetech--local-automations-n8n-ollama
- File
- docker-compose.yml
- Format
- YML
- Size
- 299 bytes
- Encoding
- UTF-8
- Estimated tokens
- ≈ 83
- Commercial use
- Allowed
- Personal data
- None
- Version
- 1.0
- Published on
- October 2, 2026 at 9:54 PM
- Updated on
- October 16, 2026 at 11:19 PM
- Storage
- in database
Statistics
Likes : 0 · Comments : 0
Click a counter to show or hide it, hover the chart for details. One view per visitor per day, bots excluded; counting started on 30 September 2026.
Estimated cost
- Input tokens per call
- ≈ 266
| Model | Per call | Per month |
|---|---|---|
| GPT-6 Luna · OpenAIbest price | €0.00002 | €0.02 |
| DeepSeek Flash · DeepSeek | €0.00007 | €0.07 |
| Mistral Large · Mistral AI | €0.00012 | €0.12 |
| DeepSeek V4 Pro · DeepSeek | €0.00031 | €0.31 |
| GPT-6 Sol · OpenAI | €0.00047 | €0.47 |
| Claude Sonnet 5.5 · Anthropic | €0.00047 | €0.47 |
| Claude Opus 5.5 · Anthropic | €0.00094 | €0.94 |
| Self-hosted open-source model (Ollama, vLLM) | €0 in API fees (server cost only) | |
Input cost only, excluding the model's answer. Providers' public standard prices (Mistral AI, DeepSeek, OpenAI, Anthropic) converted from USD to euros at the ECB rate of October 13, 2026. Estimate: 1 token ≈ 3.6 characters.
Common to all 3 regions
Created by the author, no outside source.
Commercial use allowed · credit the author · changes allowed.
Declared access: read files, modify files, send data online.
Hosted in France (Scaleway, Paris). No transfer outside the EU.
European Union · 5/5
No personal data.
No training data: no summary required.
United States · 5/5
No personal data.
No training data: no documentation to publish.
China · 5/5
No personal data.
No training data; AI-generated content published in China must be labelled (2025).
Indicative summary as of 30/09/2026, not a legal certification. Method and sources →
Content quality
The detailed criteria are for members.
Every criterion, the points removed and a tip to fix each one.
MCP contexte
https://contextetech.com/mcp
load 10wkyv1
Add the URL as a connector in your AI apps' settings, then send the request above.
API
import json, urllib.request url = "https://contextetech.com/api/resources/contextetech--local-automations-n8n-ollama" fiche = json.load(urllib.request.urlopen(url)) print(fiche["title"] or fiche["name"])
docker-compose.yml
services:
ollama:
image: ollama/ollama
volumes:
- ollama:/root/.ollama
n8n:
image: n8nio/n8n
depends_on: [ollama]
environment:
- GENERIC_TIMEZONE=America/New_York
volumes:
- n8n:/home/node/.n8n
ports:
- "5678:5678"
volumes:
ollama:
n8n:
Launch
# enregistrez docker-compose.yml, puis : docker compose up -d docker compose ps
Community
No comments yet. Share your feedback, it will help the next person.