# Use a service from file from labels

**URL:** <https://community.traefik.io/t/use-a-service-from-file-from-labels/17022>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [January 5, 2023, 10:06am UTC](https://community.traefik.io/t/use-a-service-from-file-from-labels/17022 "2023-01-05T10:06:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erwanlpfr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/erwanlpfr/32/6443_2.png) [@erwanlpfr](https://community.traefik.io/u/erwanlpfr)\
**Post date:** [January 5, 2023, 10:06am UTC](https://community.traefik.io/t/use-a-service-from-file-from-labels/17022/1 "2023-01-05T10:06:35Z")

</div>

Hello,

I want to install Nextcloud AIO with my traefik configuration.  
But! In that case, we need to set loadbalancer.servers[0].url = [http://localhost:11000](http://localhost:11000) (something like that)  
I understood that it is impossible doing that on docker compose labels.

I was wondering how can I set this setting to my actual docker compose runtime?

I have already a dynamic configuration file set with the server url as mentioned in the doc : [all-in-one/reverse-proxy.md at main · nextcloud/all-in-one · GitHub](https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#traefik-2)  
But I don't know how to tell traefik with label to use this service set in the file?

Do you have any idea how can I get rid of this?

Thank you and thanks to the traefik team!

---

<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:** [January 5, 2023, 5:54pm UTC](https://community.traefik.io/t/use-a-service-from-file-from-labels/17022/2 "2023-01-05T17:54:02Z")

</div>

To load a dynamic configuration file with Traefik you use [providers.file](https://doc.traefik.io/traefik/providers/file/) in the static configuration. The static configuration can be a file or use `command` parameters.

But you should be able to declare dynamic router and service including loadbalancer url with labels. Have you enabled the [providers.docker](https://doc.traefik.io/traefik/providers/docker/) to read labels from Docker containers?
