# Traefik 1.7 to 2.0 Docker for Windows

**URL:** <https://community.traefik.io/t/traefik-1-7-to-2-0-docker-for-windows/2037>\
**Category:** Traefik v2\
**Tags:** file, letsencrypt-acme, docker\
**Created:** [September 30, 2019, 9:08am UTC](https://community.traefik.io/t/traefik-1-7-to-2-0-docker-for-windows/2037 "2019-09-30T09:08:09Z")\
**Posts on this page:** 1\
**Showing post:** 31

<div class="post-metadata">

**Author:** ![dduportal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/dduportal/32/4_2.png) [@dduportal](https://community.traefik.io/u/dduportal)\
**Post date:** [October 9, 2019, 11:39am UTC](https://community.traefik.io/t/traefik-1-7-to-2-0-docker-for-windows/2037/31 "2019-10-09T11:39:14Z")

</div>

Hi @losif, if the 2 TCP "backend services" are served outside Docker, using the file provider would be the way to go.

- Enabling File provider: You figured out correctly the flag of the Traefik CLI configuration: `--providers.file.filename=rules.yml` enables the provider "File" and set it up to get its configuration from the file located on `./rules.yml`
- Providing the file `rules.yml` to the Traefik container: did you notice that I used a dot-slach (`./`) for the location of `rules.yml`? Because the value you've set for the flag `providers.file.filename` is a relative path INSIDE the Traefik container. You have to share this file between your machine and the traefik container, by mounting it on a specified path, as you did with v1.7 with the `traefik.toml`. My recommendation for you:
  - Mount the file with docker-compose by adding the item `- ./rules.yml:/rules.yml` in the directive `volumes: ` of the docker-compose "service" Traefik ([https://gist.github.com/IosifZ/f85ce274e02692bea100aa0f75e422e9#file-docker-compose-yml-L38](https://gist.github.com/IosifZ/f85ce274e02692bea100aa0f75e422e9#file-docker-compose-yml-L38)).
  - Set the CLI flag `--providers.file.filename` to the value `/rules.yml`

---

_[View the full topic](https://community.traefik.io/t/traefik-1-7-to-2-0-docker-for-windows/2037)._
