I guess you would need to create a reverse proxy with your web server to allow connection to the container. Depending on your web server, it could be complex.
For subfolders, you still need to configure your web server as a reverse proxy. The advantage of a proxy is that it handles SSL processing for you. You do not have to configure each app individually. Take a look at your app/container documentation. Usually, most provide examples of how to configure a reverse proxy.