fix(supabase): add healthcheck to the meta service - #86
Draft
Carlos-Vera wants to merge 1 commit into
Draft
Conversation
meta is the last service without one, so orchestrators that colour a project by container health (EasyPanel, Portainer) never show it fully green. The command is the one postgres-meta declares in its own Dockerfile; the published images do not carry it, so the compose file has to. Verified against v0.96.6: /health answers 200 even while the database is unreachable, so this tracks liveness and does not flap on a transient db blip. Autor: Carlos Vera <carlos@braveslab.com> --- “Todo lo puedo en Cristo que me fortalece.” fil 4:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
metais the only service in the template without a healthcheck. Orchestrators thatcolour a project by container health (EasyPanel, Portainer) therefore never show a
healthy stack as fully green, and a genuinely broken container is indistinguishable
from the one that simply never reports.
postgres-metadoes declare aHEALTHCHECKin its own Dockerfile, but the publishedimages do not carry it — checked on both the version pinned here and the current
release:
So the compose file has to declare it.
Change
Adds the command
postgres-metadeclares in its own Dockerfile, on the port thetemplate already sets (
PG_META_PORT: 8080).Verification
Started
metav0.96.6 withPG_META_DB_HOSTpointing at a host that does not resolve:/healthanswers 200 while the database is unreachable, so this tracks serviceliveness and will not flap on a transient database blip — matching how the other
services in this file are checked.
Desarrollado por Carlos Vera para BravesLab con el favor de nuestro señor JesusCristo.