EN
Sign in Publish
contextetech /

Local automations: n8n and Ollama

v1
English License: MIT Published on updated 2 hours ago 0 uses

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:

Community

No comments yet. Share your feedback, it will help the next person.