Skip to content

feat: add Docker health checks to all microservices - #1205

Open
Mrsandeep27 wants to merge 9416 commits into
Vacademy-io:mainfrom
Mrsandeep27:feature/docker-health-checks
Open

feat: add Docker health checks to all microservices#1205
Mrsandeep27 wants to merge 9416 commits into
Vacademy-io:mainfrom
Mrsandeep27:feature/docker-health-checks

Conversation

@Mrsandeep27

Copy link
Copy Markdown

Summary

Closes #1196

  • Added healthcheck blocks to all services in docker-compose.yml
  • Infrastructure: postgres (pg_isready), redis (redis-cli ping), pgbouncer
  • Application: all 6 Spring Boot services via /actuator/health endpoint
  • Gateway: nginx via curl
  • Replaced bare depends_on with condition: service_healthy for proper startup ordering
  • Tuned intervals: infra (10s/5s timeout), apps (30s/10s timeout, 60s start_period)

Test plan

  • Run docker compose up and verify services start in correct order
  • Verify docker compose ps shows health status for all services
  • Confirm unhealthy service prevents dependent services from starting

Generated with Claude Code

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Docker health checks to all microservices

9 participants