Here's a comprehensive README for setting up n8n on Ubuntu with Nginx:
- Ubuntu Server
- Node.js >= 18.17
| { | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.emailReadImap", | |
| "typeVersion": 2.1, | |
| "position": [ | |
| -336, |
| { | |
| "nodes": [ | |
| { | |
| "parameters": {}, | |
| "type": "n8n-nodes-base.manualTrigger", | |
| "typeVersion": 1, | |
| "position": [ | |
| -848, | |
| -544 | |
| ], |
| { | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.extractFromFile", | |
| "typeVersion": 1, | |
| "position": [ | |
| 16, |
| { | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "options": { | |
| "systemMessage": "You have this data from the Monday.com task system. Use it" | |
| } | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.agent", | |
| "typeVersion": 2.2, |
| services: | |
| supabase-kong: | |
| image: 'kong:2.8.1' | |
| entrypoint: 'bash -c ''eval "echo \"$$(cat ~/temp.yml)\"" > ~/kong.yml && /docker-entrypoint.sh kong docker-start''' | |
| depends_on: | |
| supabase-analytics: | |
| condition: service_healthy | |
| environment: | |
| - SERVICE_FQDN_SUPABASEKONG_8000 | |
| - 'KONG_PORT_MAPS=443:8000' |
| https://www.youtube.com/@AlfredNutile | |
| https://DailyAi.Studio | |
| https://bit.ly/m/alnutile |
| ____ _ _ _ ___ ____ _ _ _ | |
| | _ \ __ _ (_)| | _ _ / \ |_ _| / ___|| |_ _ _ ___ | | (_) ___ | |
| | | | | / _` | | || | | | | | / _ \ | | \___ \| __|| | | | / _ \| | | | / _ \ | |
| | |_| || (_| | | || | | |_| | / ___ \ | | ___) | |_ | |_| || (_) | | | || (_) | | |
| |____/ \__,_| |_||_| \__, |/_/ \_\ |___| |____/ \__| \__,_| \___/|_| |_| \___/ | |
| |___/ | |
| $ _ | |
| Alfred Nutile @ DailyAi.Studio | |
| Learn more at https://www.youtube.com/@AlfredNutile |
| -- Enable the pgvector extension to work with embedding vectors | |
| create extension vector; | |
| -- Create a table to store your documents | |
| create table documents ( | |
| id text primary key, -- CHANGE TO TEXT | |
| content text, | |
| metadata jsonb, | |
| embedding vector(1536) | |
| ); |
| # Build stage | |
| FROM node:20-alpine as builder | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package*.json ./ | |
| COPY bun.lockb ./ | |
| # Install dependencies |