coollabsio / coolify

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

[Bug]: Docker Swarm error Docker provider `swarmMode` option has been removed in v3 #4130

Open brianhenson opened 2 weeks ago

brianhenson commented 2 weeks ago

Error Message and Logs

Brand new cluster and the Traefik container keeps rebooting with the below error. {"level":"error","loader":"FLAG","time":"2024-11-04T21:05:11Z","message":"Docker providerswarmModeoption has been removed in v3, please use the Swarm Provider instead.For more information please read the migration guide: https://doc.traefik.io/traefik/v3.1/migration/v2-to-v3/#docker-docker-swarm"} {"level":"error","error":"command traefik error: incompatible deprecated static option found","time":"2024-11-04T21:05:11Z","message":"Command error"}

Steps to Reproduce

  1. Install coolify
  2. Bring docker swarm master into cluster
  3. bring docker workers into cluster
  4. bring coolify into docker swarm
  5. fails at that point.

Example Repository URL

No response

Coolify Version

v4.0.0-beta.360

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Debian GNU/Linux 12 (bookworm)

Additional Information

No response

XenonR commented 2 weeks ago

We got old traefik:v2 configuration but want to use traefik:v3.1 Identified code that needs fixing: https://github.com/coollabsio/coolify/blob/5d62a46a16f252e6ece4d25fe56838e99883d91b/bootstrap/helpers/proxy.php#L192 https://github.com/coollabsio/coolify/blob/5d62a46a16f252e6ece4d25fe56838e99883d91b/bootstrap/helpers/proxy.php#L213