# Why can't I set service URL on dynamic labels?

**URL:** <https://community.traefik.io/t/why-cant-i-set-service-url-on-dynamic-labels/12049>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [October 9, 2021, 3:02pm UTC](https://community.traefik.io/t/why-cant-i-set-service-url-on-dynamic-labels/12049 "2021-10-09T15:02:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dalan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/dalan/32/478_2.png) [@dalan](https://community.traefik.io/u/dalan)\
**Post date:** [October 9, 2021, 3:02pm UTC](https://community.traefik.io/t/why-cant-i-set-service-url-on-dynamic-labels/12049/1 "2021-10-09T15:02:30Z")

</div>

In the labels dynamic reference I can see this:

```auto
 - "traefik.http.services.service01.loadbalancer.server.port=foobar"
  - "traefik.http.services.service01.loadbalancer.server.scheme=foobar"

```

But in the file dynamic reference you can set the `services.$SERVICE.loadbalancer.servers.url`

```auto
  services:
    Service01:
      loadBalancer:
        sticky:
          cookie:
            name: foobar
            secure: true
            httpOnly: true
            sameSite: foobar
        servers:
        - url: foobar
        - url: foobar

```

Why isn't this available in the Docker labels config? I'd like to be able to route to internal private IPs and not need a docker file. In other words, why is `file` the only option here?

[https://doc.traefik.io/traefik/routing/services/#servers](https://doc.traefik.io/traefik/routing/services/#servers)

---

<div class="post-metadata">

**Author:** ![cakiwi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cakiwi/32/3205_2.png) [@cakiwi](https://community.traefik.io/u/cakiwi)\
**Post date:** [October 10, 2021, 1:19am UTC](https://community.traefik.io/t/why-cant-i-set-service-url-on-dynamic-labels/12049/2 "2021-10-10T01:19:37Z")

</div>

> [@dalan](#):
>
> In other words, why is `file` the only option here?

Its not, but you can't do it with the docker provider.  
You can use file, http or any of the Key/Value providers: consul, etcd, zookeeper, redis.  
The file provider is probably just the easiest.
