Sign inSign up

stackhub/apache-backend-eg

By stackhub

•Updated about 11 years ago

A simple backend designed to server the host container short hash as an example for load balancing.

Image
0

1.5K

stackhub/apache-backend-eg repository overview

⁠Purpose

The sole purpose of this container is to provide the Apache httpd server as a simple backend for a load balancer.

⁠Usage

Production: No StackEngine Only: No

⁠StackEngine Controller

To launch three (3) of these containers in a resource pool, copy and paste the contents of stack.yml in the Application Advanced Editor and launch it.

⁠CLI

This container is useful outside the StackEngine ecosystem. To run it, it is necessary to ensure the internal port is 80:

docker run -d -p :80 stackhub/apache-backend-eg

b139cd126fb7 stackhub/apache-backend-eg "/start.sh" 5 seconds ago Up 4 minutes 443/tcp, 0.0.0.0:32790->80/tcp angry_leakey

Then curl the address:

curl http://localhost:32790

and you will see as a response:

<h1>b139cd126fb7</h1>

By returning the container hash, you will easily be able to tell which backend responded in a multicontainer situation such as using the servcie-haproxy⁠ for the StackEngine Container Application Center.

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:9b407df0a…

Size

59.1 MB

Last updated

about 11 years ago

docker pull stackhub/apache-backend-eg