opf / openproject-docker-compose

Recipes to deploy OpenProject with Docker, Docker Compose, Kubernetes, etc.
181 stars 164 forks source link

Feature: autoheal #8

Closed machisuji closed 3 years ago

machisuji commented 3 years ago

I was not aware docker-compose doesn't do this by default.

The specific case that prompted this was that OpenProject ran into an infinite loop making the process completely unresponsive but the container was still considered healthy by docker.

I've added a healthcheck to make sure the unhealthy condition is actually recognized. But even then the container is only shown as unhealthy and not restarted.

Hence I've added the autoheal service.