Skip to content

Commit 5f59950

Browse files
authored
Merge pull request #492 from DefangLabs/kevin/improveN8NLocal
2 parents e47eaeb + 78f2184 commit 5f59950

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

samples/n8n/compose.dev.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ services:
77
- POSTGRES_PASSWORD=password
88
volumes:
99
- db_storage:/var/lib/postgresql/data
10-
healthcheck:
11-
test: ["CMD-SHELL", "pg_isready -h localhost -U n8nuser -d n8ndatabase"]
1210

1311
n8n:
1412
extends:
@@ -18,17 +16,14 @@ services:
1816
- DB_POSTGRESDB_SSL_ENABLED=false
1917
- DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=true # counterintuitive, but leave this as true to *disable* SSL (required for local dev)
2018
- N8N_ENCRYPTION_KEY=unsafe-encryption-key
19+
- N8N_PROTOCOL=http
20+
- N8N_HOST=localhost
21+
- WEBHOOK_URL=http://localhost:5678/
22+
- N8N_PROXY_HOPS=0
2123
- DB_POSTGRESDB_PASSWORD=password
22-
ports:
23-
- 5678:5678
24-
links:
25-
- postgres
2624
volumes:
2725
- n8n_storage:/home/node/.n8n
28-
depends_on:
29-
postgres:
30-
condition: service_healthy
3126

3227
volumes:
3328
db_storage:
34-
n8n_storage:
29+
n8n_storage:

0 commit comments

Comments
 (0)