traefik inconsistency reddit / selfhosted ---------------------------------------------------------------------- SillyLilBear · 2023-11-14 11:14 I'm having some weird issues with Traefik in front of various containers. Initially it all worked fine, but as I got more containers behind Traefik, I started having weird results. Some containers that were working would stop responding with "gateway timeout" yet still could be accessed without HTTP on their port if I still exposed it. I seem to have a group of containers that usually are the ones that stop working (metabase, windmill, nextcloud, invidious, searxng). A lot of them continue to work and have never seen them go down. If I restart containers over and over again or restart traefik will make some combination of them work again, but I can't get them all working at once, but sometimes I can get most of them but one working. For example, I stop all the problematic containers. I start change detection, it works fine via ssl. I start metabase, now change detection and metabase aren't working. Traefik logs are giving me no errors though. If I shutdown metabase, then try again, change detection doesn't work, but if I restart traefik it starts working. All the other containers like homepage, portainer, and so on are working fine. ​ UPDATE: I needed to specify docker network for traefik using \`traefik.docker.network=proxy\` since I had more than one network specified. Thanks /u/TearDrainer ---------------------------------------------------------------------- rafipiccolo · 2023-11-14 11:56 good luck for you if you dont show any config :) it looks like a bad config. like same labels applied to multiple containers Or you could have some healthchecks failing. That would remove the container from traefik until it becomes healthy again ---------------------------------------------------------------------- SillyLilBear · 2023-11-14 12:05 I attached three docker compose files to the original post. If I start one of them, then start the other it shuts down both. If I bring it to one, then restart traefik (sometimes just restarting the one) I can get that one back. If I start all of my containers, I usually get 2-3 of the 5 problematic ones to work. ---------------------------------------------------------------------- TearDrainer · 2023-11-14 12:15 If you have multiple networks on a service you need to specifiy on which one Traefik can reach your service. For example for metabase you need to add: `traefik.docker.network=proxy` Otherwise it will be random and you'll end up with erratic gateway timeouts. ---------------------------------------------------------------------- SillyLilBear · 2023-11-14 12:16 This sounds like it might be it, will test. Thanks.