Feature: Add Docker healthcheck to detect readiness of storage API
Summary
Currently, the storage-api
Docker container does not define a healthcheck. This causes the Harvester to start too early, before the API is actually ready to serve requests.
Problem
The simple "depends_on: - storage_api" dependency in the docker_compose file is not sufficient to garantee the Storage API readyness. The Harvester assumes the storage API is available immediately after the container starts, but the API needs some time to initialize. A Docker healthcheck would allow to delay starting dependent services until the API is ready.
What has been tried
I tried implement a healthcheck using curl
to call the /docs
endpoint, but the container image does not include curl
, so the command failed.