-
Notifications
You must be signed in to change notification settings - Fork 526
Running Echo IP in a docker with Caddy Reverse proxying with Certs from Let's encrypt
This page gives you basic steps on how to run Echoip (ifconfig Docker image) with Caddy Reverse proxying with Certs from Let's encrypt
Docker command
docker run --detach --name ifconfig -p 127.0.0.1:8080:8080 mpolden/echoip echoip -p -H X-Forwarded-For
The above command just gives the Echoip on the docker host 127.0.0.1:8080 but you can change the name from ipconfig to anything you want and change port from 127.0.0.1:8080 to 127.0.0.1:.
You can even run it directly if you don't want it secured by running the following command
docker run --detach --name ifconfig -p 80:8080 mpolden/echoip echoip -p -H X-Forwarded-For
If you want it secured you will need caddy (Check out Caddy its an interesting project ) which secures the connection by reverse proxying and getting a cert automatically from Let's encrypt.
you just need to run you can replace the example.com to your own domain or sub domain from duckdns.org
caddy reverse-proxy --from example.com --to 127.0.0.1:8080
Just creating this page so I can contribute in a meaningful way to the good work done by @mpolden and other good hearts who contributed to this project.
If you find Something not right contact me @simonindia don't open an issues ticket.