Simple n8n setup with PostgreSQL and Cloudflare free tunnel for secure public access.
make tunnelThis will:
- Start cloudflared and get a random tunnel URL
- Create
.env.localwith theWEBHOOK_URL - Print the public URL
docker compose up -d- Local: http://localhost:5678
- Public: https://random-words-1234.trycloudflare.com (from step 1)
- Login: admin / admin
If you stop or restart cloudflared, you will lose the tunnel URL!
When this happens:
- Run
make tunnelagain to get a new URL - Update your webhook URLs in existing workflows
- Restart n8n:
docker compose restart n8n
make tunnel- Create new tunnel URL and update.env.localmake clean- Stop all services and remove configdocker compose up -d- Start all servicesdocker compose logs cloudflared- Check tunnel logsdocker compose down- Stop all services
- Tunnel URLs are temporary and change on restart
- Perfect for development and testing
- No Cloudflare account required
- SSL encryption included automatically