|
|
|
|
|
by olafalo
2578 days ago
|
|
This is cool! I came up with something similar for hosting a few personal sites from my home network, except I did it the other way around - I built a docker image that does the SSH tunneling part. The external host is just a cheap droplet with GatewayPorts set to yes in the sshd config. A benefit of doing it this way is that you don't even have to expose localhost; I have Caddy running in another container in a docker-compose.yml file, so I can forward it directly with: ssh -R 80:caddy:80 -R 443:caddy:443
So all the networking happens within the network created by docker-compose. |
|