Skip to content

Add container healthchecks to docker-compose #21

Description

@Abhay512

Neither service in docker-compose.yml declares a healthcheck, so docker compose ps reports a container as up even when the engine has stopped serving. The backend already exposes a perfectly good probe at GET /api/status.

What to do

  • Backend: healthcheck against http://localhost:8000/api/status
  • Dashboard: healthcheck against http://localhost:3000
  • Sensible interval, timeout, retries and start_period — the engine takes a while to build the universe on boot, so start_period matters
  • Change depends_on for the dashboard to condition: service_healthy

Acceptance

  • docker compose ps shows real health, not just "up"
  • docker compose config --quiet passes
  • A cold docker compose up reaches healthy without a false failure during universe build

Notes

The base images are slim/alpine — check curl or wget actually exists before depending on it, and install it in the Dockerfile if not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dockerContainer images and composegood first issueWell-scoped, self-contained, a great place to startinfrastructureResilience, reconnect, backfill, crash safety

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions