Hi @Kacper - I’m sorry but I can’t help with you but I just wanted to add to this thread. I’m unable to make Traefik work with n8n to connect to the server.
No matter what I try with Traefik in front I am presented with:
Server connection could not be established.
The server is down or there is a connection problem.
It will reconnect automatically as soon as the backend can be reached
My settings are as follows:
version: '3.7'
services:
dev-n8n-app:
image: n8nio/n8n
container_name: n8n-app
ports:
- 5678:5678
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:.n8n.hostname.org
- traefik.port=5678
- traefik.protocol=http
- traefik.docker.network=proxy
- traefik.backend=n8n-app
volumes:
- ./data:/root/.n8n
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=***
- N8N_BASIC_AUTH_PASSWORD=***
- GENERIC_TIMEZONE=America/Vancouver
- TZ=America/Vancouver
- WEBHOOK_TUNNEL_URL=https://n8n.hostname.org/
- VUE_APP_URL_BASE_API=https://n8n.hostname.org/
- N8N_PROTOCOL=https
- N8N_HOST=n8n.hostname.org
- N8N_PORT=5678
networks:
- proxy
- services
restart: always
networks:
proxy:
external: true
services:
external: true
If I portmap 5678 directly I have no issues, but for obvious reasons I want to put it behind a Reverse Proxy/SSL Terminator.