Hello,
you don't have to create file for that, you just need to creates several routers and services.
app:
image: your-image
labels:
- "traefik.enable=true"
- "traefik.http.routers.foo.rule=Host(`my.domain.com`)"
- "traefik.http.routers.foo.entrypoints=ep1"
- "traefik.http.routers.foo.service=svc_foo"
- "traefik.http.services.svc_foo.loadbalancer.server.port=5432"
- "traefik.http.routers.bar.rule=Host(`my.domain.com`)"
- "traefik.http.routers.bar.entrypoints=ep2"
- "traefik.http.routers.bar.service=svc_bar"
- "traefik.http.services.svc_bar.loadbalancer.server.port=7070"