From 1634522c1905bc72c9fc79e87e2e486d18a67fe4 Mon Sep 17 00:00:00 2001 From: Ryan Toler Date: Wed, 25 Mar 2026 06:01:48 +0000 Subject: [PATCH] n8n 0llama --- playbooks/n8n/docker-compose.env | 8 +++++++- playbooks/n8n/docker-compose.yml | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/playbooks/n8n/docker-compose.env b/playbooks/n8n/docker-compose.env index cf842c8..206ab09 100644 --- a/playbooks/n8n/docker-compose.env +++ b/playbooks/n8n/docker-compose.env @@ -14,4 +14,10 @@ GENERIC_TIMEZONE=America/Chicago # The email address to use for the TLS/SSL certificate creation SSL_EMAIL=n8n@noemail.com -DB_SQLITE_POOL_SIZE=10 \ No newline at end of file +DB_SQLITE_POOL_SIZE=10 + + +OLLAMA_HOST=http://ollama:11434 +N8N_BASIC_AUTH_ACTIVE=true +N8N_BASIC_AUTH_USER=admin +N8N_BASIC_AUTH_PASSWORD=secretpassword \ No newline at end of file diff --git a/playbooks/n8n/docker-compose.yml b/playbooks/n8n/docker-compose.yml index 1bebcc7..70a1247 100644 --- a/playbooks/n8n/docker-compose.yml +++ b/playbooks/n8n/docker-compose.yml @@ -53,6 +53,22 @@ services: volumes: - ./n8n_data:/home/node/.n8n - ./n8n_files:/files + depends_on: + - ollama + - traefik + + + ollama: + image: ollama/ollama + # Exposes Ollama to all interfaces so other containers can access it + environment: + - OLLAMA_HOST=0.0.0.0 + volumes: + # Persists models locally so they aren't lost + - ollama_data:/root/.ollama + networks: + - n8n-network + restart: unless-stopped volumes: traefik_data: \ No newline at end of file