Skip to content

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

Notifications You must be signed in to change notification settings

vikas027/site-counter

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published