Sign inSign up

sark/web-tier

By sark

•Updated over 11 years ago

Lightweight httpd container that can be used when testing load balancing and failover scenarios

Image
0

337

sark/web-tier repository overview

⁠web-tier

Lightweight httpd container that can be used when testing load balancing and failover scenarios.

This image is based on the official build of nginx⁠.

⁠Endpoints

  • /index.html will return a simple page with the hostname of the container and an optional message.
  • /ping.html will return "pong" in plain text.

⁠How to use

⁠run attached (follow logs)

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

⁠run detached (in background)

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

⁠custom message (set the environment variable msg)

docker run -i -t --rm -e "msg=This message will also be visible on index.html" -p 80:80 sark/web-tier:latest

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:c328a895d…

Size

-

Last updated

almost 11 years ago

docker pull sark/web-tier