traefik-kop icon indicating copy to clipboard operation
traefik-kop copied to clipboard

TCP rules not being published

Open heyfordy opened this issue 10 months ago • 0 comments

Hi,

I'm trying to create a TCP router alongside my http router for a container. It looks like the http rule gets published, but the tcp one does not:

time="2024-05-03T05:30:46Z" level=info msg="publishing http://192.168.22.10:9001" service=mqtt@docker service-type=http

Here's the config from the container's compose.yml:

    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.mqtt.rule=Host(`mqtt.local`)"
      - "traefik.http.services.mqtt.loadbalancer.server.port=9001"
      # MQTT routing
      - "traefik.tcp.routers.mqtt.rule=HostSNI(`*`)"
      - "traefik.tcp.routers.mqtt.entrypoints=mqtt"
      - "traefik.tcp.routers.mqtt.service=service-broker-mqtt"
      - "traefik.tcp.services.mqtt.loadbalancer.server.port=1883"

Is this expected or is there some configuration I am missing?

Cheers

heyfordy avatar May 03 '24 05:05 heyfordy