The project is a web service running in docker, I use it to test high availability or loading balance architecture.🔨🔨🔨
When you send http request to the container, it will show container host information.

Expose port : 9090
$ docker run -itd -p 80:9090 loopbai/hostinfo-in-web
You should add a file (e.g. stack.yml)
version: '3.2'
services:
web:
image: loopbai/hostinfo-in-web
ports:
- 80:9090/tcp
deploy:
replicas: 3
$ docker stack deploy -c stack.yml hostinfo
Content type
Image
Digest
Size
7.4 MB
Last updated
over 7 years ago
docker pull loopbai/hostinfo-in-web