#Healthchecks

1 messages · Page 1 of 1 (latest)

native parcel
#

Hi @rugged pilot . Thank you for your reply. Didn't knew about the built-in check. The thing is for something like postgres, keycloak or any other stuff we have to wait after the port is open, if the database is ready for example. with CMD like this :

        healthcheck:
            test: [ 'CMD', 'pg_isready', '-q', '-d', 'keycloak', '-U', 'keycloak' ]
            interval: 10s
            timeout: 5s
            retries: 5
            start_period: 30s

even if we could easily implement it in PHP I think the problem is for any language. We'd have to create our own loops / code etc for something that is built in in docker. What not rely on this instead ? the service is listening should'nt be the same as the service is ready to handle stuff.

native parcel
#

Even if dagger already ahs a built in healthcheck, it allows to push a docker image to a registry but doesn't allow us to set a default healthcheck. I think it should be part of dagger to be able to modify / check and execute the healthcheck. WDYT ?

rugged pilot
#

Would you mind opening an issue for that? I think @lament linden might have opinions, he designed the current service & healthcheck system

native parcel
#

sure thing. I'll do it in the next days. Thank you

lament linden