# Use 1 traefik instance on 2 VPS

**URL:** <https://community.traefik.io/t/use-1-traefik-instance-on-2-vps/17965>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [March 18, 2023, 4:18pm UTC](https://community.traefik.io/t/use-1-traefik-instance-on-2-vps/17965 "2023-03-18T16:18:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guillaumereynaud](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/guillaumereynaud/32/6838_2.png) [@guillaumereynaud](https://community.traefik.io/u/guillaumereynaud)\
**Post date:** [March 18, 2023, 4:18pm UTC](https://community.traefik.io/t/use-1-traefik-instance-on-2-vps/17965/1 "2023-03-18T16:18:07Z")

</div>

Bonjour,

j'ai un problème de compréhension dans l'utilisation de Traefik.

Voici mon problème :  
j'ai actuellement 2 VPS (chez 2 prestataires différents):

- VPS1 : traefik est installé avec un nom de domaine ([guillaume.com](http://guillaume.com) par exemple) avec docker et docker-compose et 10 applications qui tournent parfaitement.
- VPS2 : docker et docker-compose sont installés

Je souhaterai savoir s'il est possible d'utiliser mon instance de Traefik sur mon VPS1 pour accéder à des applications qui se trouvent sur mon VPS2 (si oui comment peut-on faire ?) ou est-il obligé de réinstaller Traefik sur mon VPS2 avec le même nom de domaine [guillaume.com](http://guillaume.com) ?

J'espère que je suis clair.

D'avance merci pour vos réponses ou suggestions

* * *

Hello,

I have a problem of understanding how to use Traefik.

Here is my problem :  
I currently have 2 VPS (at 2 different providers):

- VPS1: traefik is installed with a domain name ([guillaume.com](http://guillaume.com) for example) with docker and docker-compose and 10 applications running perfectly.
- VPS2 : docker and docker-compose are installed

I would like to know if it is possible to use my Traefik instance on my VPS1 to access applications that are on my VPS2 (if so how can I do it?) or is it necessary to reinstall Traefik on my VPS2 with the same domain name [guillaume.com](http://guillaume.com)?

I hope I am clear.

Thanks in advance for your answers or suggestions

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [March 18, 2023, 8:03pm UTC](https://community.traefik.io/t/use-1-traefik-instance-on-2-vps/17965/2 "2023-03-18T20:03:04Z")

</div>

If you want to use multiple nodes with Docker, one option is to use [Docker Swarm](https://docs.docker.com/engine/swarm/). Make the Traefik node the manager, then Traefik can discover services by label and route to it. You can constraint your services so the containers only run on a certain node.

One alternative is to use a dynamic config with `provider.file` and manually create routers and services with `loadbalancer.server.url`.

Another alternative is to use Traefik as reverse proxy on both nodes, just use sub-domains with the different IPs of the nodes. I would always prefer sub-domains over paths anyway, as many webapps can not (easily) be configured with a PathPrefix.
