Not found TLS EC2 DOCKER

Hello, good day! I'm having trouble provisioning TLS with Let's Encrypt. I'm following this documentation: Traefik Docker TLS Challenge Documentation - Traefik

Context:

I have a machine on EC2 with Docker. My domain is pointing to the public IP of the EC2 instance via Route53, and on the instance, I have allowed HTTPS traffic from my public IP. The site loads with HTTPS, but the certificate is not resolving. I'm not sure what I'm doing wrong. Regards!

version: "3.3"

services:

  traefik:
    image: "traefik:v3.1"
    container_name: "traefik"
    command:
      #- "--log.level=DEBUG"
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entryPoints.websecure.address=:443"
      - "--certificatesresolvers.myresolver.acme.tlschallenge=true"
      #- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
      - "--certificatesresolvers.myresolver.acme.email=<MY-EMAIL.COM>"
      - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
    networks:
      - traefik-net
    ports:
      - "443:443"
      - "8080:8080"
    volumes:
      - "./letsencrypt:/letsencrypt"
      - "/var/run/docker.sock:/var/run/docker.sock:ro"

  whoami:
    image: "traefik/whoami"
    networks:
      - traefik-net
    container_name: "simple-service"
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.whoami.rule=Host(`<MY-DOMAIN.COM>`)"
      - "traefik.http.routers.whoami.entrypoints=websecure"
      - "traefik.http.routers.whoami.tls.certresolver=myresolver"

networks:
  traefik-net:
    external: true


Config seems to look okay. Enable and check Traefik dashboard (doc), debug log (doc) and access log (doc).

You would usually open port 80 for a redirect. You can simplify and assign TLS globally on entrypoint. Compare with simple Traefik example.