# How to configure non in docker running services (backends / frontends)?

**URL:** <https://community.traefik.io/t/how-to-configure-non-in-docker-running-services-backends-frontends/2272>\
**Category:** Traefik v2\
**Tags:** file, docker\
**Created:** [October 10, 2019, 11:57am UTC](https://community.traefik.io/t/how-to-configure-non-in-docker-running-services-backends-frontends/2272 "2019-10-10T11:57:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![j1gg3](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/j1gg3/32/4383_2.png) [@j1gg3](https://community.traefik.io/u/j1gg3)\
**Post date:** [October 10, 2019, 11:57am UTC](https://community.traefik.io/t/how-to-configure-non-in-docker-running-services-backends-frontends/2272/1 "2019-10-10T11:57:44Z")

</div>

Hi there,

I'm currently struggling with the migration from v1 to v2 with services which are not running within my docker environment.

I defined my frontends and backends in v1 with below code:

```auto
[backends]
[backends.hassweb]
        [backends.hassweb.servers.hassweb]
            url = "http://192.168.178.180:8123"
			
			
[frontends]
        [frontends.domain]
                backend = "hassweb"			
				
		[frontends.domain.routes.domain]
                rule = "Host:hass.domain.de"

```

How to do so in v2?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Iosif](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/iosif/32/5746_2.png) [@Iosif](https://community.traefik.io/u/Iosif)\
**Post date:** [October 10, 2019, 12:01pm UTC](https://community.traefik.io/t/how-to-configure-non-in-docker-running-services-backends-frontends/2272/2 "2019-10-10T12:01:39Z")

</div>

Have a look here:

> <https://gist.github.com/IosifZ/f2a271d95e64c8203354273b3d496399>

> **[Traefik 1.7 to 2.0 Docker for Windows](https://community.traefik.io/t/traefik-1-7-to-2-0-docker-for-windows/2037/31)**
>
> 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...

I'm not saying that it's solved matter, but maybe it will help you get started faster than I did.

---

<div class="post-metadata">

**Author:** ![j1gg3](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/j1gg3/32/4383_2.png) [@j1gg3](https://community.traefik.io/u/j1gg3)\
**Post date:** [October 10, 2019, 1:14pm UTC](https://community.traefik.io/t/how-to-configure-non-in-docker-running-services-backends-frontends/2272/3 "2019-10-10T13:14:42Z")

</div>

thans for your prompt reply! 🙂  
Tried to adapt with my services, unfortunately traefik says

```auto

time="2019-10-10T13:10:30Z" level=error msg="the service \"garage@file\" does not exist" entryPointName=web routerName=garage@file

```

my rules.yml:

```auto

http:
  routers:
    garage:
      entryPoints:
        - web
      rule: "Host(`garage.azmhome.de`)"
      service: garage
      tls:
        certResolver: "mydnschallenge"
        domains:
          - main: "domain.de"
            sans:
              - "*.domain.de"
services:
    garage:
      loadBalancer:
        servers:
          - url: "http://192.168.178.26:8880"
        passHostHeader: true

```

---

<div class="post-metadata">

**Author:** ![Iosif](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/iosif/32/5746_2.png) [@Iosif](https://community.traefik.io/u/Iosif)\
**Post date:** [October 10, 2019, 1:20pm UTC](https://community.traefik.io/t/how-to-configure-non-in-docker-running-services-backends-frontends/2272/4 "2019-10-10T13:20:45Z")

</div>

Check your syntax, as far as i can see in your post Services is same as http, it should be same as routers. like this

```auto
http:
  routers:
    garage:
      entryPoints:
        - web
      rule: "Host(`garage.azmhome.de`)"
      service: garage
      tls:
        certResolver: "mydnschallenge"
        domains:
          - main: "domain.de"
            sans:
              - "*.domain.de"
  services:
    garage:
      loadBalancer:
        servers:
          - url: "http://192.168.178.26:8880"
        passHostHeader: true

```

---

<div class="post-metadata">

**Author:** ![j1gg3](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/j1gg3/32/4383_2.png) [@j1gg3](https://community.traefik.io/u/j1gg3)\
**Post date:** [October 11, 2019, 6:18am UTC](https://community.traefik.io/t/how-to-configure-non-in-docker-running-services-backends-frontends/2272/5 "2019-10-11T06:18:49Z")

</div>

Thank you very much 🙂
