How can I use loadbalancer.servers.address in labels?

With the file configuration I can use the following:

services:
        service:
            loadBalancer:
                servers:
                    - address: "address_here:1194"

However, I only see examples for servers.port in labels in docker-compose:

labels:
    -- traefik.http.services.whoami.loadbalancer.server.port=80

I can't use servers.address or servers[0].address in labels because I get an error:
traefik.http.services.whoami.loadbalancer.server.port=80.

How can I use the address in labels?

Hello,

It's not possible: when you are using Docker the IP are auto-detected.

If you want to create routing to something outside of Docker you have to use the File provider.

https://docs.traefik.io/v2.2/providers/file/