Sign inSign up

nick3141/health

By nick3141

•Updated almost 6 years ago

Checks a URL and returns an icon for success / fail

Image
0

237

nick3141/health repository overview

⁠HTTP Health Checker⁠

status

Provides health checks based on the http status from an http request

⁠Usage

⁠Default image size options

xxl, xl, l, m, sm

xxl xl l m sm

# xxl:https://health.nickkelly.dev/check?url=https://health.nickkelly.dev/_health&size=xxl
# xl: https://health.nickkelly.dev/check?url=https://health.nickkelly.dev/_health&size=xl
# l:  https://health.nickkelly.dev/check?url=https://health.nickkelly.dev/_health&size=lh
# m:  https://health.nickkelly.dev/check?url=https://health.nickkelly.dev/_health&size=mh
# sm: https://health.nickkelly.dev/check?url=https://health.nickkelly.dev/_health&size=smh
⁠Checking google.com

Google check

# check if google returns good http status
# visit: https://health.nickkelly.dev/check?size=xl&url=https://google.com
⁠Choosing a fail image

Choosing a bad image

# set bad=<bad image url> in the search
# visit: https://health.nickkelly.dev/check?size=xl&url=https://google.com&okay=https://tinyurl.com/y6kzednq&bad=https://tinyurl.com/yxvpcy7c
⁠Choosing a good image

Choosing a good image

# set good=<good image url> in the search
# visit: https://health.nickkelly.dev/check?size=xl&url=https://google.com&good=https://tinyurl.com/y6kzednq

⁠Run with Docker:

docker run \
  --name health-checker \
  -p 5000:5000 \
  -e PORT=5000 \
  -e LOG_DIR=./storage/logs \
  -e LOG_MAX_SIZE=20m \
  -e LOG_ROTATION_MAX_AGE=7d \
  -e RATE_LIMIT_WINDOW_MS=60000 \
  -e RATE_LIMIT_MAX=100 \
  --rm \
  nick3141/health:latest

⁠Run with Docker Compose:

version: "3"

services:
  http_health_checker:
    container_name: http_health_checker
    image: nick3141/health:latest
    restart: unless-stopped
    ports:
      - 5000:5000
    environment:
      - PORT=5000
      # optional:
      # - LOG_DIR=./storage/logs
      # - LOG_MAX_SIZE=20m
      # - LOG_ROTATION_MAX_AGE=7d
      # - RATE_LIMIT_WINDOW_MS=60000
      # - RATE_LIMIT_MAX=100

Tag summary

Content type

Image

Digest

Size

65.3 MB

Last updated

almost 6 years ago

docker pull nick3141/health