Multiple Docker providers across hosts in local network?


Can I easily set up a single Traefik instance on a VM, which may add routes and services defined in another Docker provider on another VM? These VMs are on the same LAN, and I want to keep the services on each VM separated. Though, as each service requires a hostname and my IP's 80 & 443 are routed to one of the VMs, it's quite difficult to do what I want.

You can only instruct Traefik to connect to one docker deamon and therefore, see the container that deamon controls.

So, you could install Traefik on one VM and let it listen to the deamon on the other VM.

If you want to stretch accross multiple hosts, you should consider trying something like Swarm.