traefik-kop icon indicating copy to clipboard operation
traefik-kop copied to clipboard

multiple servers behind one service

Open koehnik opened this issue 1 year ago • 4 comments

Hello there,

got a question which is based on a service which has multiple servers in background. With the docker deamon it works like charme. But i ran into this issue with traefik-kop.

I want to publish multiple instances behind one router and one service (load balancing in fact).

Here are my labels for the container1 and the same on container2:

 - "traefik.enable=true"
  - "traefik.http.services.test.loadbalancer.server.port=8080"
  - "traefik.docker.network=q-srv"
  - "traefik.http.routers.test.entrypoints=web"
  - "traefik.http.services.test.loadbalancer.server.scheme=http"
  - "traefik.http.routers.test.rule=Host(`test.local`)"

But everytime i start the other container, the IP will bei overwritten on both servers with the latest discovered ip from traefik-kop. So is it possible to do that?

image image

Can you give me a hint how to publish both IPs to this service as servers? Would be great :)

koehnik avatar Jan 11 '24 08:01 koehnik