Skip to content

[DEVOPS] Add Docker health checks to all services in docker-compose #399

@dev-fatima-24

Description

@dev-fatima-24

Priority: medium

Description

The docker-compose services have no health checks, so Docker cannot determine if a service is actually ready to accept connections. Health checks must be added for all services so that dependent services wait for their dependencies to be healthy before starting.

Acceptance Criteria

  • PostgreSQL health check uses pg_isready
  • Redis health check uses redis-cli ping
  • Backend health check calls GET /health
  • Frontend health check calls GET /
  • All dependent services use depends_on with condition: service_healthy

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions