Minimal web server that returns the IP of the webserver and the number of requests
3.1K
This minimal web server can be used for testing load balancers and reverse proxies.
It returns a text response with the IP of the webserver and the number of requests it has received, like
Server: worker-1
IP: 172.17.0.2
Visits: 6
Host: counter.mycompany.com
X-Forwarded-For: 34.230.12.56
Run it by
docker run -d -p 8080:8080 --name ip-and-counter jpsecher/ip-and-counter $(hostname)
Stop it by
docker kill ip-and-counter
It has a non-counting health endpoint at /health.
Content type
Image
Digest
sha256:344eef5d7…
Size
53.5 MB
Last updated
9 months ago
docker pull jpsecher/ip-and-counter