Lightweight httpd container that can be used when testing load balancing and failover scenarios.
This image is based on the official build of nginx.
/index.htmlwill return a simple page with the hostname of the container and an optional message./ping.htmlwill return "pong" in plain text.
docker run -i -t --rm -p 80:80 sark/web-tier:latest
docker run -i -t --rm -p 81:80 sark/web-tier:latest
docker run -i -t --rm -p 82:80 sark/web-tier:latest
docker run -d -p 80:80 sark/web-tier:latest
docker run -d -p 81:80 sark/web-tier:latest
docker run -d -p 83:80 sark/web-tier:latest
docker run -i -t --rm -e "msg=This message will also be visible on index.html" -p 80:80 sark/web-tier:latest
MIT