diun icon indicating copy to clipboard operation
diun copied to clipboard

Provide a way to healthcheck the diun container itself

Open YurNaybor opened this issue 1 year ago • 0 comments

Description

Hello,

I would like to have a healthcheck for the diun container, so I can monitor it within Docker (Swarm). This is different from the healthchecks integration, because it does not need any other service. Maybe we can have a diun sub command that returns an exit code depending on the state of diun. This command could then be used in the healthcheck of Docker, e.g. in a compose file:

  [...]
services:
  diun:
    [...]
    healthcheck:
      test: "diun ping"
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 20s

YurNaybor avatar Aug 18 '23 09:08 YurNaybor