DEV Community

ahmed SENEINA
ahmed SENEINA

Posted on • Originally published at gogokodo.com

The n8n Self-Hosted Mistake Beginners Keep Making: WEBHOOK_URL

If you are self-hosting n8n with Docker, the hard part is usually not docker compose up.

The hard part is making webhooks work reliably.

The beginner trap is simple:

  • n8n runs locally on localhost:5678
  • Telegram, Stripe, GitHub or Discord need a public URL
  • n8n generates webhook URLs based on its environment
  • if WEBHOOK_URL is wrong, production triggers fail

Minimal mental model:

environment:
  - N8N_HOST=n8n.example.com
  - N8N_PROTOCOL=https
  - WEBHOOK_URL=https://n8n.example.com/
Enter fullscreen mode Exit fullscreen mode

After changing env vars, restart the container and re-check the webhook URL shown in n8n.

For a French beginner-friendly walkthrough with Docker Compose, RGPD notes, webhook checks and internal n8n practice links, I wrote the full guide here:

https://gogokodo.com/n8n-self-hosted-docker-rgpd

Top comments (0)