Proxy rabbitmq or TCP connection ( setup traefik without docker )

hello there,

newbie question here. i recently i using traefik but not deployed in docker, im installing using binary and systemd. so i have goals that i want to expose my service ( maybe redis, rabbitmq, kafka ) using domain,

for example:
instead using 10.10.10.0:5672, i want to using just simple amqp.example.com. even i dont want to using port after domain, like amqp.example.com:5672

here's my traefik.yaml

entryPoints:
  web:
    address: ":80"
  tcpep: 
    address: ":5672"

providers:
  file:
    directory: /etc/traefik/dynamic-conf/
    watch: true

api:
  dashboard: true
  insecure: true

log:
  level: DEBUG

here's my dynamic config yaml

http:
  routers:
    to-rabbitmq-dashboard:
      entryPoints:
        - "web"
      rule: "Host(`dashboard-rabbitmq.example.com)"
      service: rabbitmq-dashboard

  # middlewares:
    # Define an authentication mechanism
    # user-login:
      # basicAuth:
        # users:
        # - admin:$2y$10$uXwCZppQYc9g2f9T5Zg8gOk5x6EWyAyvtX5ukq3KKUfzfbwXWIV/K 

  services:
    rabbitmq-dashboard:
      loadBalancer:
        servers:
        - url: http://192.168.2.25:15672

tcp:
  routers:
    to-rabbitmq-amqp:
      entryPoints:
        - "tcpep"
      rule: "HostSNI(`amqp-rabbitmq.example.com`)"
      service: rabbitmq-amqp

  services:
    rabbitmq-amqp:
      loadBalancer:
        servers:
        - address: 192.168.2.25:5672

i already tried using tls and not working. but i dont want to using tls for now
can someone help me to achieve this

Traefik provides convenient auto configuration with labels when you run it with Docker.

But Traefik needs to run inside Docker to be able to access Docker networks.

Check simple Traefik example.

Note that you need to use a tcp router and service instead of http with binary protocols like RabbitMQ.

thanks for replying,
for some reason we need to setup this onto server using systemd instead of docker. sure maybe traefik have convenient config using docker label, but shouldnt it have same way to config the traefik overall right ? using static and dynamic config,

i think already using tcprouter and service in dynamic config, is my dynamic config is wrong somehow ?

You can absolutely configure Traefik manually with dynamic config.