Skip to content

Commit d2cecfd

Browse files
committed
feat: update start-n8n-with-ngrok.ps1 script
1 parent cfafe2e commit d2cecfd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

start-n8n-with-ngrok.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,20 @@ try {
2222

2323
Write-Host "ngrok URL: $ngrokUrl" -ForegroundColor Green
2424

25-
# Start n8n with EXPLICIT volume: n8n_data -> /home/node/.n8n
25+
# Always pull the latest full image from Docker Hub
26+
Write-Host "Pulling latest n8n image..." -ForegroundColor Cyan
27+
docker pull n8nio/n8n:latest | Out-Null
28+
29+
# Start n8n with persistent volume and webhook URL
2630
Write-Host "Starting n8n with volume 'n8n_data'..." -ForegroundColor Cyan
2731
docker run -d `
2832
--name n8n `
2933
-p 5678:5678 `
3034
-v n8n_data:/home/node/.n8n `
3135
-e WEBHOOK_URL="$ngrokUrl/" `
32-
docker.n8n.io/n8nio/n8n:latest | Out-Null
36+
-e GENERIC_TIMEZONE="Europe/Rome" `
37+
-e N8N_BASIC_AUTH_ACTIVE=false `
38+
n8nio/n8n:latest | Out-Null
3339

3440
Write-Host ""
3541
Write-Host "SUCCESS: n8n is running!" -ForegroundColor Green

0 commit comments

Comments
 (0)