How do I set up https with self hosted docker(using self signed certs)

Could you clarify this question - is it inside docker? There is an instruction on how it looks throughout the installation process. I have my own installation option, but it requires consideration of the issue.

Thanks!