osixia / docker-openldap

OpenLDAP container image 🐳🌴
MIT License
4.06k stars 978 forks source link

Healthcheck for the container #637

Open SchoolGuy opened 2 years ago

SchoolGuy commented 2 years ago

Desired Behavior

It would be helpful to have a health-check available for the image to be able to tell if the container is responsive.

Current Behavior

Currently the fact that the container is running is indicating that openLDAP is working, this is however an assumption that is not true in all cases.

Alternatives Considered

None

Context

adrienbuffet commented 1 year ago

Up ?

Ryonez commented 1 year ago

Would also like to see this.

voc0der commented 9 months ago

Would be nice. For now I just do:

    healthcheck:
      test: ["CMD", "cat", "/run/slapd/slapd.pid"]
      interval: 15s
      timeout: 30s
      retries: 5
      start_period: 5s

Work well enough. Of course, start_period is busted in moby/moby 25.x but it'll be fast one day :)