Sign inSign up

loopbai/hostinfo-in-web

By loopbai

•Updated over 7 years ago

Image
0

325

loopbai/hostinfo-in-web repository overview

⁠docker-hostinfo-web

Pulls

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.

⁠Demo

image

⁠Usage

Expose port : 9090

⁠Basic

$ docker run -itd -p 80:9090 loopbai/hostinfo-in-web

⁠Docker swarm

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

Tag summary

Content type

Image

Digest

Size

7.4 MB

Last updated

over 7 years ago

docker pull loopbai/hostinfo-in-web