Can traefik expose containers that do not run on the same server?

Hi,

I've got an VPS currently running NPM in docker and I'd like to switch to traefik.
I set things up but at this point I'm not sure on how to expose containers that do not run on said VPS but on a local server.

Both servers are connected via VPN and before with NPM I could just tell it to expose
VPN_IP_of_local_server:1234 -> myContainer.myDomain.tld

Is this also possible with traefik?

You can enter a service in the dynamic configuration and set the server url to the vpn tunneled service. Ofcourse Traefik needs access to that address.

See the following post for reference and code snippets