Skip to content

Docker: add a healthcheck to compose.yaml #1

Description

@raym0nz82

What
Add a healthcheck to both services in compose.yaml: the app (HTTP 200 on / or /api/v1/components) and the scheduler (e.g. the file the scheduler touches, or php artisan schedule:list). Docker then shows healthy/unhealthy instead of just running, and docker compose up --wait works.

Where
compose.yaml, maybe docker/entrypoint.sh. Keep the two-container layout.

Done when
docker compose ps shows (healthy) for both after start; README Docker section mentions it in one line.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions