n8n 설정 부분 수정
This commit is contained in:
1 parent
1b712e25fd
commit
e0987c02ce
3 files changed
+72
-32
No files matched your search
+13
-22
@@ -1,35 +1,26 @@
|
||||
# n8n (LLM: OpenAI API, key from Last3Mon/.env via register-credentials.sh) + Ollama as the fallback.
|
||||
# docker compose up -d (run from this folder)
|
||||
# n8n editor : http://localhost:5678
|
||||
# Ollama API : http://localhost:11434 (n8n uses http://ollama:11434 inside the network)
|
||||
# Course stack for days 65-79: the official n8n one-line setup + Ollama (fallback LLM).
|
||||
#
|
||||
# 1) Install n8n once with the official script, into ~/day65-n8n (the folder name becomes the
|
||||
# Docker project name, so the network stays day65-n8n_default for the day 67+ data APIs):
|
||||
# cd ~ && curl -fsSL https://get.n8n.io | N8N_DIR=./day65-n8n sh -s -- --version 2.42.6
|
||||
# 2) From this folder, run everything together:
|
||||
# docker compose up -d (start / stop / ps / logs n8n / exec ollama ... as usual)
|
||||
#
|
||||
# This file includes ~/day65-n8n/compose.yml (n8n, task runners, sandbox, search) as written by the
|
||||
# script, and adds Ollama. n8n reaches Ollama at http://ollama:11434; WSL programs use localhost:11434.
|
||||
name: day65-n8n
|
||||
|
||||
services:
|
||||
n8n:
|
||||
image: docker.n8n.io/n8nio/n8n:2.42.6
|
||||
ports:
|
||||
- "5678:5678"
|
||||
environment:
|
||||
- GENERIC_TIMEZONE=Asia/Seoul
|
||||
- TZ=Asia/Seoul
|
||||
- N8N_SECURE_COOKIE=false
|
||||
volumes:
|
||||
- n8n-data:/home/node/.n8n
|
||||
- ./workflows:/home/node/workflows:ro
|
||||
depends_on:
|
||||
- ollama
|
||||
restart: unless-stopped
|
||||
include:
|
||||
- path: ${N8N_HOME:-../../../../day65-n8n}/compose.yml
|
||||
|
||||
services:
|
||||
ollama:
|
||||
image: ollama/ollama:latest
|
||||
ports:
|
||||
- "11434:11434"
|
||||
volumes:
|
||||
# Reuse the models downloaded on day 64 by setting OLLAMA_DATA in .env
|
||||
# (default: a new Docker volume, then run: docker compose exec ollama ollama pull gemma3:4b)
|
||||
- ${OLLAMA_DATA:-ollama-data}:/root/.ollama
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
n8n-data:
|
||||
ollama-data:
|
||||
Reference in new issue
Block a user