Tunnel 504 Gateway Time-out

I’m starting using the docker version of n8n. I use this command to run the docker with the tunnel configuration

docker run -it --rm \
 --name n8n \
 -p 5678:5678 \
 -v /Users/Shared/Docker/n8n_data:/home/node/.n8n \
 docker.n8n.io/n8nio/n8n \
 start --tunnel

The docker starts and I can see this logs

Waiting for tunnel ...
Tunnel URL: https://xxxxxxxxxx.hooks.n8n.cloud/

IMPORTANT! Do not share with anybody as it would give people access to your n8n instance!
Version: 1.84.1
 ================================
   Start Active Workflows:
 ================================
   - "My Agent" (ID: yyyyyyyyyy))
     => Started

Editor is now accessible via:
https://xxxxxxxxxx.hooks.n8n.cloud

Opening the URL i get the timeout error “504 Gateway Time-out”
Trying to ping the xxxxxxxxxx.hooks.n8n.cloud from my pc and inside the docker works fine. The editors works if I use localhost:5678

What can I check to enable the tunnel? thanks

Information on my n8n setup

  • **n8n version:**1.84.1
  • **Database (default: SQLite):**default
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**docker
  • **Operating system:**macOS 15.3.1
1 Like

Hey @Andrea_P

We are planning to drop supper for the tunnel so it might be between swapping to ngrok or Cloudflare tunnels which both options work.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.