How to add a certificate to a project built by docker

How to add a certificate to a project built by docker

I used docker to deploy a web project on port 1234. How to write the configuration to make it realize https jump
example.com:1234 {

}

Please fill out the help topic template, as per the forum rules.