Hi,
Is it possible to add a custom HealthIndicator for when a particular liquibase migration has completed?
Problem: Currently my docker-compose file runs a bunch of services, and one of the profiles which combines all the services have a command which execute 3 scripts. One of these scripts tries to access a database table, but it doesn't exist before the backend service has completed its liquibase migration. In Docker, I already tried adding a "healtcheck" and "depends_on", but it currently only checks for the normal health of the application as returned by Spring Boots default health actuator.
I need to somehow extend it to check whether or not the liquibase database migration in the Java backend app has actually completed. How can I extend the health actuator to depend on this migration being done?
The app is written using Groovy/Grails, which I believe is build on top of Java/Spring Boot, so it must have access to the same.