https://serveo.net is an alternative for ngrok. taichunmin/serveo-server can let you host your own serveo. And taichunmin/serveo can let you secure URL to your localhost server through any NAT or firewall in Docker.
You should provide a https credentials or generate one by Let's Encrypt.
- Copy the example file
$ cp docker-compose.example.yml docker-compose.yml
- You should edit
docker-compose.yml
to change thedomain
argument. - use
docker-compose up -d
to start container. - you can use
docker-compose logs
to confirm the service start successfully.
$ git clone https://github.com/taichunmin/docker-serveo-server.git
$ cd docker-serveo-server
# You need to set up credentials first, please see dns-cloudflare/README.md
$ cp docker-compose.example.yml docker-compose.yml
$ nano docker-compose.yml # change domain
$ sudo docker-compose up -d
$ sudo docker-compose logs serveo
# Attaching to docker-serveo-server_serveo_1
# serveo_1 | 2019/03/16 13:11:42 Listening on :2222...
$ ssh -R test.example.com:443:localhost:80 example.com -p 2222 # on another computer
# Forwarding HTTP traffic from https://test.example.com
# Press g to start a GUI session and ctrl-c to quit.
MIT License