Expose local dev server with SSH tunnel and Docker

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. localtunnel

    expose yourself

    There are already services like localtunnel or ngrok for this purpose, but when you actually start using them, you will often find out that they have limitations on their free plans. So, we will configure our own custom setup once and have it always available for convenient and practical usage which will save a lot of time and nerves in the long run.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. docker-openssh-server

    For this, we will use linuxserver/openssh-server image. Linuxserver is an organization that maintains very stable Dokcer images for all kinds of purposes.

  4. docker-mods

    Documentation and Examples of base container modifications

  5. traefik-proxy

    Production deployment for nextjs-prisma-boilerplate app.

    Above is shown only the relevant Traefik configuration for the SSH tunnel container. A complete Traefik reverse proxy configuration requires additional static and dynamic configurations for the Traefik container, but that is outside the scope of this tutorial. You can search for examples of Traefik configurations or reuse mine, which is available in this repository: nemanjam/traefik-proxy.

  6. rathole

    A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.

    Another point to make is that the SSH tunnel technique is most suitable for temporarily exposing services for demo purposes. For permanent tunnels, you would need to add autossh to keep the connection alive, but there are better tools for permanent tunnels, such as rapiz1/rathole or fatedier/frp.

  7. frp

    A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.

    Another point to make is that the SSH tunnel technique is most suitable for temporarily exposing services for demo purposes. For permanent tunnels, you would need to add autossh to keep the connection alive, but there are better tools for permanent tunnels, such as rapiz1/rathole or fatedier/frp.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Expose home server with Rathole tunnel and Traefik

    4 projects | dev.to | 1 May 2025
  • Show HN: Connet – A P2P reverse proxy with NAT traversal

    5 projects | news.ycombinator.com | 2 Jan 2025
  • ISP dont provide public IP anymore, how to access home LAN

    5 projects | /r/selfhosted | 2 Jan 2023
  • Anyone using Fast Reverse Proxy?

    4 projects | /r/selfhosted | 23 Nov 2022
  • QUIC and the End of TCP Sockets

    2 projects | news.ycombinator.com | 9 Oct 2025