traefik-kop
traefik-kop copied to clipboard
multiple servers behind one service
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?
Can you give me a hint how to publish both IPs to this service as servers? Would be great :)