Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docker): error in api healthcheck logic #317

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

stephentgrammer
Copy link
Contributor

@stephentgrammer stephentgrammer commented Jan 30, 2024

After working with Jeremy for a little while on a lago api-worker error, we realized that it was likely caused by a race condition on startup using the docker-compose.yml, when the worker started before the api migrations are finished. The curl binary was missing from the api image, which was recently resolved, and this PR points the the healthcheck at the /health endpoint and uses the condition: service_healthy to enforce that the lago api is healthy befor the lago services that depend on the api start.

DO NOT MERGE this until the lago-api image is > 0.54.2-beta because this depends the fix mentioned above!

Copy link
Contributor

@vincent-pochet vincent-pochet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!
Thank you very much for this contribution

@vincent-pochet vincent-pochet merged commit d961560 into getlago:main Feb 1, 2024
@stephentgrammer stephentgrammer deleted the fix/api-healthcheck branch February 1, 2024 17:18
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.

3 participants