I would love to do that for my homelab, but not all docker containers trust root certs from the system so getting it right would have been a bigger challenge than dns hacking to get a valid certificate for something that can’t be accessed from outside the network.
I am not willing to give credentials to alter my dns to a program. A security issue there would be too much risk.