Only one of the docker containers is getting an HTTPS certification

I created multiple certificate entries in the traefik.yaml and it worked, in the docker compose i added one of the certificates to each of the containers

api:
      acme:
        email: example@example.com
        storage: /ssl-certs/acme2.json
        caServer: "https://acme-v02.api.letsencrypt.org/directory"
        #-- (Optional) Remove this section, when using DNS Challenge
        httpChallenge:
          entryPoint: web

    angular:
      acme:
        email: example@example.com
        storage: /ssl-certs/angular.json
        caServer: "https://acme-v02.api.letsencrypt.org/directory"
        #-- (Optional) Remove this section, when using DNS Challenge
        httpChallenge:
          entryPoint: web
api:
    image: api:latest
    container_name: api
    restart: unless-stopped
    environment:
      ASPNETCORE_URLS: http://*:5000
      #ASPNETCORE_Kestrel__Certificates__Default__Password: "longPassword1234"
      #ASPNETCORE_Kestrel__Certificates__Default__Path: "/App/https/aspnetapp.pfx"
      ASPNETCORE_ENVIRONMENT: DebianLocal
      DB_HOST: db
      DB_PORT: 5432
      DB_NAME: db
      DB_USER: admin
      DB_PASSWORD: admin
    ports:
      - 127.0.0.1:5000:5000
      #- 127.0.0.1:5001:5001
    labels:
      traefik.enable: true
      traefik.http.routers.api.entrypoints: websecure
      traefik.http.routers.api.rule: Host(`example-api.xyz`)
      traefik.docker.network: traefik-network
      traefik.http.routers.api.tls: true
      traefik.http.routers.api.tls.certresolver: api
    volumes:
      - ./config/api/ssl-certs:/https_certificate
    networks:
      keycloak_network:
      db_network:
      traefik-network:

  angular:
    image: angular:latest
    container_name: angular
    restart: unless-stopped
    #ports:
      #- 8080:80
    volumes:
      - ./config/angular/nginx/nginx.conf:/etc/nginx/nginx.conf
    labels:
      traefik.enable: true
      traefik.http.routers.angular.entrypoints: websecure
      traefik.http.routers.angular.rule: Host(`example.xyz`)
      traefik.http.routers.angular.tls: true
      traefik.http.routers.angular.tls.certresolver: angular
    networks:
      traefik-network:

Thanks a lot for your help.
Is this right what i did or should i do it some other way?