How to install self signed SSL cert for Docker container?

Hey All. I’ve been using HA in a Docker container (inside Ubuntu VM) for a couple of months, and I’m quite happy with it.
I’m using it in my homelab which is not exposed to the Internet and I do not wish to use Nabu Casa. I’d like to add self-signed certificate to it. I did a little searching in the documentation but I couldn’t find much information about that topic.
I’ve done this before on a server which is inside a VM, but since I’m new into containers, I dont know if there wouldn’t be any complications.

Can you share any kind of advices/guides you may have about adding self-signed cert for a Docker container?

Thanks!