Acccess host localhost from inside a Docker container So I have VPS that exposes an API endpoint on localhost at port 8080.