The following file configuration works:
http:
routers:
hass:
rule: Host(`hass.XXX`)
service: hass
services:
hass:
loadBalancer:
servers:
- url: http://192.168.10.2:8123
I tried to move this configuration to the label-based one directly in the compose.yaml
file, but whatever I tried failed. I tried a direct translation:
- traefik.enable=true
- traefik.http.routers.hass.rule=Host(`hass.XXX`)
- traefik.http.routers.hass.service=hass
- traefik.http.services.hass.loadbalancer.server.url=http://192.168.10.2
but also a port binding
- traefik.enable=true
- traefik.http.routers.hass.rule=Host(`hass.XXX`)
- traefik.http.routers.hass.service=hass
- traefik.http.services.hass.loadbalancer.server.port=8123
to no avail.
Is this a limitation of Traefik or am I doing something wrong?