-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (61 loc) · 3.53 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (61 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# =============================================================
# LeadIQ-AI — Docker Compose
# Starts n8n and reuses the existing "n8n_data" Docker volume.
#
# Usage:
# docker compose up -d # start in background
# docker compose down # stop (data is preserved in volume)
# docker compose logs -f # tail logs
#
# All secrets and runtime config come from .env — nothing is hardcoded here.
# Run: cp .env.example .env then fill in your actual values before starting.
# =============================================================
services:
n8n:
image: n8nio/n8n:latest
container_name: n8n
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "5678:5678"
# All secrets and runtime config come from .env — nothing is hardcoded.
environment:
# ── Application ───────────────────────────────────────────
- APP_ENV=${APP_ENV:-development}
- N8N_WEBHOOK_SECRET=${N8N_WEBHOOK_SECRET}
- N8N_WEBHOOK_AUTH_REQUIRED=${N8N_WEBHOOK_AUTH_REQUIRED:-false}
# ── Timezone ──────────────────────────────────────────────
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
- TZ=${TZ}
# ── LLM (Google Gemini) ───────────────────────────────────
- LLM_API_KEY=${LLM_API_KEY}
- LLM_MODEL=${LLM_MODEL}
- LLM_TIMEOUT_MS=${LLM_TIMEOUT_MS}
- SUPABASE_TIMEOUT_MS=${SUPABASE_TIMEOUT_MS:-10000}
- LLM_API_URL=${LLM_API_URL}
# ── Supabase (PostgreSQL State Engine) ──────────────────────
- SUPABASE_URL=${SUPABASE_URL}
- SUPABASE_SERVICE_ROLE_KEY=${SUPABASE_SERVICE_ROLE_KEY}
# ── Google Sheets ─────────────────────────────────────────
- GOOGLE_SHEETS_SPREADSHEET_ID=${GOOGLE_SHEETS_SPREADSHEET_ID}
- GOOGLE_SHEETS_TAB_NAME=${GOOGLE_SHEETS_TAB_NAME:-Leads}
# ── Deduplication ─────────────────────────────────────────
- LEAD_DEDUPLICATION_WINDOW_SECONDS=${LEAD_DEDUPLICATION_WINDOW_SECONDS:-600}
# ── Slack ─────────────────────────────────────────────────
- SLACK_CHANNEL_HOT=${SLACK_CHANNEL_HOT}
# ── Gmail ─────────────────────────────────────────────────
- GMAIL_SENDER_NAME=${GMAIL_SENDER_NAME:-LeadIQ-AI Team}
# ── n8n Internal ──────────────────────────────────────────
# Required to allow n8n Code nodes to read $env variables.
- N8N_BLOCK_ENV_ACCESS_IN_NODE=false
volumes:
# Reuses the pre-existing "n8n_data" named volume.
# All workflow definitions and credentials are preserved.
- n8n_data:/home/node/.n8n
# Declare the volume as external so Compose reuses it instead of
# creating a new one. Docker will error if it does not exist yet,
# which is the desired safety behaviour.
volumes:
n8n_data:
external: true