Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 2.22 KB

README.md

File metadata and controls

54 lines (36 loc) · 2.22 KB

GitHub stars GitHub license Docker Stars Docker Pulls Docker Cloud Automated build Docker Cloud Build Status

docker for serveo.net server

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.

Set up credentials

You should provide a https credentials or generate one by Let's Encrypt.

Usage

  1. Copy the example file
    $ cp docker-compose.example.yml docker-compose.yml
  2. You should edit docker-compose.yml to change the domain argument.
  3. use docker-compose up -d to start container.
  4. you can use docker-compose logs to confirm the service start successfully.

Demo

$ 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.

LICENSE

MIT License