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

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:

[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.

Have a look here:

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

1 Like

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


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

my rules.yml:



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


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

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
1 Like

Thank you very much :slight_smile:

1 Like