For multiple docker host, should I swarm them or dynamic config to ip?

I'm new to treafik, got it working very well with all configs in the dynamic file, each pointing to local ip & ports, because all my VMs currently running standalone docker for isolation purpose.

But traefik is designed with auto discovery, to use that I need swarm or k8s, or maybe some discovery service.

My question is not about how to set these up, I found a few post asking but there are dozen tutorials out there.

My question is if there is any advantage of auto discovery over dynamic file?

I see it as same amount of configs, one is distributed to each docker-compose, one is aggregated in a single file. In fact, via dynamic file to ip:port, at least you have local access in case of treafik container goes down.

Auto discover helps if you consistently add new services (like SaaS tenants) or need to scale services up and down (like SaaS again).

If you have a static setup, I think there is not so much to gain.

Thanks for the reply. I didn't think of auto spinning up instance, auto discovery make so much sense there

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.