Connection Lost working with docker

I have upgraded my n8n running in docker and now I see connection lost always.
My docker file is:
services:
n8n:
image: docker.n8n.io/n8nio/n8n
container_name: n8n
restart: unless-stopped
ports:

“127.0.0.1:5678:5678” # Solo accesible localmente en WSL
environment:
N8N_HOST=MY_DOMAIN
WEBHOOK_URL=MY_DOMAIN
GENERIC_TIMEZONE=Europe/Madrid,
N8N_RUNNERS_ENABLED=true,
N8N_PUSH_BACKEND=sse,
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true,
,
,
,

volumes:

./n8n_data:/home/node/.n8n # Mapea la carpeta local “data” a la ruta del contenedor
./n8n_export:/home/node/workflows_export,
proxy:
image: jc21/nginx-proxy-manager
container_name: proxy
restart: unless-stopped
ports:
“80:80”
“443:443”,
“81:81”,
volumes:
./proxy_data:/data
./proxy_letsencrypt:/etc/letsencrypt,
,
depends_on:
n8n,
,
,

volumes:
proxy_data:
proxy_letsencrypt:

Hi, any reason why you have enabled websocket support but set SSE manually for the backend?

reg,
J.

Yes, because in the previous version if I didn´t write it I had that error. I have tried to remove it from my docker-compose file but it still fails.

But you can reach the server and access it right? it’s only after that that you get the error message? Did you try to set this?
N8N_PROXY_HOPS Number 0 Number of reverse-proxies n8n is running behind.

Yes, I have access to the server without any issue.


Let me try with the hops

It is the same issue with Hops = 0

sorry, i just copy and pasted it directly from the docs. as you are using a reverse proxy you would need to set it to 1, the default is 0

I have tried too, but the same

I have tried with:
- N8N_PROXY_HOPS=1
- N8N_PUSH_BACKEND=websocket

But it still fails. I have updated to 1.92.2 it was working before

yes. i have save issue but my panel use Aapanel running web socket - docker / portainer.

before this perfectly running.
but use the latest version n8n got lost connection

Thanks, so you with the latest version has the same issue I have? How did you solve it?

Any answer here??

Hi, no solution for this?

No answer here?