coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
32.93k stars 1.75k forks source link

[Bug]: Container labels contain Traefik ones even if the Server proxy is Caddy #2801

Closed lorenzomigliorero closed 1 month ago

lorenzomigliorero commented 3 months ago

Description

I have one server with Caddy as a proxy, but all my resources (no matter the build pack) contain labels for both Traefik and Caddy. Only the caddy ones should be generated. I'm unsure how tricky it is to solve, but it'd be a nice addition.

Minimal Reproduction (if possible, example repository)

Screenshot 2024-07-11 at 20 16 25

Version

v4.0.0-beta.307

JuanxCursed commented 2 months ago

+1 same issue here (getting error 502)

picocodes commented 2 months ago

I also get error 502 when I deploy a Node JS app. Healthcheck is working fine.

I'm using Caddy.

The option to switch back to Traefik is disabled so I can't test on Traefik.

JuanxCursed commented 2 months ago

This setup has quite unexpected behavior. I have three applications (Nuxt using SSR with node .output/server/index.mjs). Two of these applications work perfectly, and just one is causing issues. All three have the exact same setup. This one is causing issues and doesn't work either with Static build + Nginx or with Node.

THE ONLY difference between them is the proxy port (each one has a unique available port) and the subdomain.

Did you guys make some progress within this subject?

peaklabs-dev commented 1 month ago

This has been addressed and if you want you can generate labels only for the specific proxy you are using, the only downside to this is that you will have to manually regenerate the labels for each source if you switch proxies and have this option enabled. Note that there is no harm in having both traffic and caddy labels, it is just not as clean as just having one. The option is under Server > Proxy and then:

image