Proxy two ports same domain or different domains

I am using traefik for my docker application using the following compose file:

version: '3.8'
services:
  calibre:
    image: 'ghcr.io/linuxserver/calibre:6.1.0'
    environment:
      - PUID=1000
      - PGID=1000
    ports:
      - '8080:8080'
      - '8081:8081'
    networks:
      - t2_proxy
    volumes:
      - 'config:/config'
      - 'books:/uploads'
      - 'plugins:/plugins'
      - 'library:/calibre_Library'
    deploy:
      mode: global
      placement:
        constraints:
          - node.role == manager
      labels:
        - traefik.enable=true
        - traefik.http.routers.calibre-rtr.entrypoints=https
        - traefik.http.routers.calibre-rtr.rule=Host(`calibre.mydomain.tld`)
        - traefik.http.routers.calibre-rtr.tls=true
        - traefik.http.routers.calibre-rtr.middlewares=chain-no-auth@file
        - traefik.docker.network=t2_proxy
        - traefik.http.routers.calibre-rtr.service=calibre-svc
        - traefik.http.services.calibre-svc.loadbalancer.server.port=8080
        - traefik.http.routers.calibre-rtr.middlewares=chain-authelia@file
networks:
  t2_proxy:
    external: true
volumes:
  config:
    driver: local
    driver_opts:
      o: bind
      device: /mnt/data/app-config/calibre/config
      type: none
  books:
    driver: local
    driver_opts:
      o: bind
      device: /mnt/data/media/complete/books
      type: none
  plugins:
    driver: local
    driver_opts:
      o: bind
      device: /mnt/data/app-config/calibre/plugins
      type: none
  library:
    driver: local
    driver_opts:
      o: bind
      device: /mnt/data/media/calibreLibrary
      type: none

The problem I have is that this application has two ports that I need to access. Currently this config supports proxying the 8080 port to 443 on the domain calibre.mydomain.tld, but application also uses port 8081 which I also need to access through traefik proxy, even on a different domain for example dl.mydomain.tld. Is this possible and if so how could I do this?

I figured it out by adding more labels with a different service name

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.