Self hosted docker-compose based behind reverse proxy

Describe the issue/error/question

I tried using traefik as a reverse proxy based on the subfolderWithSSL and others found in the forum.

What is the error message (if any)?

I was able to get the SSL working, but webhooks started intermittently fail with “Bad gateway” responses.
The traefik log shows these lines:

2023/02/05 13:07:12 reverseproxy.go:505: httputil: ReverseProxy read error during body copy: unexpected EOF
2023/02/05 13:07:12 reverseproxy.go:505: httputil: ReverseProxy read error during body copy: unexpected EOF
2023/02/05 13:07:12 reverseproxy.go:505: httputil: ReverseProxy read error during body copy: unexpected EOF
time="2023-02-05T13:07:12Z" level=error msg="service \"n8n-withpostgres\" error: unable to find the IP address for the container \"/withpostgres_n8n_1\": the server is ignored" providerName=docker container=n8n-withpostgres-17f09461753bf7afeeb413ba2c7144c33096e1a38ed9c7e5a55b2a10683e8e9c

I also noticed interface show multiple errors for /rest/push?sessionId=xxxxxx
Search in forums brought up an issue with compression on traefik, but proposed solutions didn’t help.

Is it actually a compression issue, or something else?

Information on your n8n setup

  • n8n version: 0.209.4
  • Database you’re using (default: SQLite):Postgres
  • Running n8n with the execution process [own(default), main]:default
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]:Docker Compose withPostgres

Hey @kristudulu,

Welcome to the community :tada:

It looks like Traefik is saying it can’t find the n8n instance, Without seeing your config it is hard to say what is missing. As a test have you tried a direct connection to the n8n instance to make sure that is working it would then help work out where the problem could be.