Hi,
I have multiple instances doing that.
So, for example, the demo docker container is exposing port 8080 (for the container) on port 8080 (on the host). Which means that if I run in the host ‘curl -vvv http://localhost:8080/openmrs’, I get an answer.
Then I have nginx installed on the host, pointing a certain domain (demo.openmrs.org)
in nginx vhosts to http://localhost:8080/openmrs (and setting up HTTPS as well). The ‘acme’ part is about the certificate generated by letsencrypt, so you can ignore unless you are using letsencrypt for your SSL/TLS certificates.
Note that I’m using ansible to deploy nginx configuration (and my whole infrastructure is completely automated), so you cannot just copy and paste that it won’t work.