Create a "letsencrypt" directory in the same directory you created the docker-compose.yml file.
Replace the values for certificatesresolvers.myresolver.acme.eab.kid, certificatesresolvers.myresolver.acme.eab.hmacencoded, and certificatesresolvers.myresolver.acme.email with your own correct values.
Replace whoami.example.com by your own domain within the traefik.http.routers.whoami.rule label of the whoami service.
Optionally uncomment the following line if you want to test/debug:
#- "--log.level=DEBUG"
Run docker-compose up -d within the folder where you created the previous file.
Wait a a few moments for the certificate request to complete, and visit https://your_own_domain to confirm everything worked as expected.