A simple web server that outputs the container's public ip address as a web site. There are two routes available:
- / shows an http site
- /api show only the api
For more information about this image and its history, please have a look at martinay/show-public-ip
GitHub repo.
show-public-ip is a simple web site to show the container's public IP address, written in javascript.
The docker image is auto built at https://registry.hub.docker.com/u/martinay/show-public-ip/.
$ docker run --rm -it -p 80:80 martinay/show-public-ip
with custom port:
$ docker run --rm -it -e PORT=1234 -p 1234:1234 martinay/show-public-ip
The image is based on node:lts-alpine