Routing 0auth2 server

Hello, I would like to use ory Hydra as an 0auth2 server : https://github.com/ory/hydra.
On the docs : https://www.ory.sh/docs/hydra/production#routing, so can I use traefik to route hydra?
Here my docker compose file:

hydra-migrate:
    image: oryd/hydra:latest                                                     environment:
      - DSN=mysql://root:mypwd@tcp(mariadb:3306)/hydra
    networks:
      - internal
    command:
      migrate sql -e --yes
    restart: on-failure

 hydra:
    image: oryd/hydra:latest
    container_name: authentication
    ports:
      - "4444:4444" # Public port
      - "4445:4445" # Admin port
      - "5555:5555" # Port for hydra token user
    command:
      serve all --dangerous-force-http
    depends_on:
     - hydra-migrate
    environment:
      - DSN=mysql://root:mypwd@tcp(mariadb:3306)/hydra
      - URLS_SELF_ISSUER=http://127.0.0.1:4444
      - URLS_CONSENT=http://127.0.0.1:3000/consent
      - URLS_LOGIN=http://127.0.0.1:3000/login
      - URLS_LOGOUT=http://127.0.0.1:3000/logout
      - SECRETS_SYSTEM=mysecret
      - OIDC_SUBJECT_TYPES_SUPPORTED=public,pairwise
      - OIDC_SUBJECT_TYPE_PAIRWISE_SALT=mysalt
networks:
      - web
      - internal
    labels:
      - "traefik.enable=true"
      - "traefik.frontend.rule=Host:auth. Mydomain.com"
      - "traefik.port=4000"
      - "traefik.backend=hydra"
      - "traefik.frontend.entryPoints=http,https"
      - "traefik.docker.network=web

I try the REST api https://www.ory.sh/docs/hydra/sdk/api, but I cannot reach hydra with auth.mydomain.com, I have to specify the port (4444/4445)