Vikunja container health check

Hey,

I’m implementing compliance rules in my company and one of them is having as much containers having health check in Docker as possible. Vikunja already has an endpoint /health which could be used for it, but since the official Docker container is based on a scratch image, it’s harder to put extra binaries for curl or wget in order to be able to run a check against the endpoint. Or would you be able to bake in some binary which could be run to do a check?

Both would be good.

Welcome! :waving_hand:

The next release will have a vikunja healthcheck command which you can use for what you’re trying to do.

We’re also available to do consulting or custom development for your company, if needed.

1 Like

Thank you very much!

Hi. How would i apply this health check in docker compose for vikunja?

I tried below but didn’t work:

```yaml

    healthcheck:
      test: ["CMD", "vikunja healthcheck"]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 10s

What didn’t work about it?

was staying unhealthy even though no errors in logs. fixed it.

Do not say only fixed it, but can you say how?