I have a Ruby on Rails app running in a docker container on a remote server.
When I'm connected to remote server with ssh like ssh user@<server_ip>
, I can ping it with ping mywebapp.localhost
. But now, I need to be able to connect to it from my computer (macbook) (for example from chrome browser sending mywebapp.localhost
url).
Is it really possible to do that? Could you suggest any solutions or tell me where to dig, please?