GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — imgproxy/docs/healthcheck.md at master · pushd/imgproxy

Expand file tree

/

healthcheck.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
19 lines (13 loc) · 715 Bytes
/

healthcheck.md

Copy path

File metadata and controls

19 lines (13 loc) · 715 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Health check

imgproxy comes with a built-in health check HTTP endpoint at /health.

GET /health returns an HTTP Status of 200 OK if the server has been successfully started.

You can use this for readiness/liveness probes when deploying with a container orchestration system such as Kubernetes.

imgproxy health

imgproxy provides an imgproxy health command that makes an HTTP request to the health endpoint based on the IMGPROXY_BIND and IMGPROXY_NETWORK configs. It exits with 0 when the request is successful and with 1 otherwise. The command is handy to use with Docker Compose:

healthcheck:
  test: [ "CMD", "imgproxy", "health" ]
  timeout: 10s
  interval: 10s
  retries: 3
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.