File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed
Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ POSTGRES_DB=n8n
44
55N8N_ENCRYPTION_KEY = super-secret-key
66N8N_USER_MANAGEMENT_JWT_SECRET = even-more-secret
7+ N8N_DEFAULT_BINARY_DATA_MODE = filesystem
78
89# For Mac users running OLLAMA locally
910# See https://github.com/n8n-io/self-hosted-ai-starter-kit?tab=readme-ov-file#for-mac--apple-silicon-users
Original file line number Diff line number Diff line change 1+ ## Local Sandbox: Full Setup Guide
2+
3+ ### 1. Build Community Nodes
4+
5+ This prepares the custom extensions that n8n will load.
6+
7+ - ** Directory:** ` community-nodes `
8+ - ** Commands:**
9+
10+ ``` bash
11+ pnpm install
12+ pnpm build
13+
14+ ```
15+
16+ ### 2. .env file
17+
18+ Please copy ` .env.example ` in the directory ` docker-compose ` to ` .env ` .
19+
20+ ### 3. Selective Database Migration
21+
22+ We will spin up ** only** the PostgreSQL container to allow the migration script to run against it via ` localhost ` .
23+
24+ - ** Step A: Start Postgres**
25+ In the ` docker-compose ` directory:
26+
27+ ``` bash
28+ docker compose up -d postgres
29+
30+ ```
31+
32+ - ** Step B: Run Migration**
33+ In the ` external-hooks ` directory:
34+
35+ ``` bash
36+ pnpm install
37+ pnpm bundle
38+ cp -r drizzle dist/
39+
40+ CUSTOM_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/n8n_custom node dist/migrate.cjs # pragma: allowlist secret
41+
42+ ```
43+
44+ ### 4. Launch the Full Stack
45+
46+ Now that the database is migrated and the nodes are built, bring up the rest of the services.
47+
48+ - ** Directory:** ` docker-compose `
49+ - ** Command:**
50+
51+ ``` bash
52+ docker compose up --build
53+
54+ ```
You can’t perform that action at this time.
0 commit comments