Before I go down the rabbit hole

Before I go to deep down the rabbit hole, is it possible to have a docker container running a web page with an SSH tunnel back to itself in a frame (or some other way of accessing the command line in a window on the page)? I am trying to build out some learning modules (similar to code academy) and before I get too deep, want to make sure I am on the right path. I already have a container running a Golang webserver with Go and vim installed and working.