Sign inSign up

vikas027/site-counter

By vikas027

•Updated about 6 years ago

Image
1

4.0K

vikas027/site-counter repository overview

⁠Site Counter

This is a simple app which prints out the hostname, IP Addresses and the number of hits on a HTTP call.

The app is available on Docker Hub Registry⁠

⁠Usage

$ docker run -dit -p <host_port>:80 vikas027/site_counter

⁠Sample Outputs

$ curl localhost:<host_port>:/
Use one of these URIs: [health counter]
$
$ curl localhost:<host_port>/health
{"status":"ok"}
$ curl localhost:<host_port>/counter
a8c7e2217271  -  [172.17.0.2]  -  View Count:  1
$ curl localhost:<host_port>/counter
a8c7e2217271  -  [172.17.0.2]  -  View Count:  2

⁠To Do

  • Reduce size of the docker image

⁠References

Tag summary

Content type

Image

Digest

Size

158.2 MB

Last updated

about 6 years ago

docker pull vikas027/site-counter