I assume you saw the logs in the container saying the service started on localhost. That is only localhost in the container. You need port forwarding to make it available on your host
But… if the seervice actually stared on localhost, this will not work. Only if the process is listening on all IPs and you just saw a recommendation to access the website.