Concept Flow - Health checks in Docker
Start Docker Container
Docker runs Health Check Command
Health Check Command executes Spring Boot Actuator Endpoint
Spring Boot returns status (UP/DOWN)
Docker receives status
Docker marks container as healthy or unhealthy
Docker takes action based on health (restart, alert, etc.)
Docker runs a health check command that calls Spring Boot's actuator endpoint to get app status, then marks container health accordingly.