mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-21 08:15:23 -04:00
[PR #243] [MERGED] infra: add healthcheck for pgvector in docker-compose #264
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/pentagi/pull/243
Author: @mason5052
Created: 4/8/2026
Status: ✅ Merged
Merged: 4/11/2026
Merged by: @asdek
Base:
main← Head:infra/docker-compose-healthchecks📝 Commits (1)
223b832infra: add healthcheck for pgvector in docker-compose📊 Changes
1 file changed (+9 additions, -2 deletions)
View changed files
📝
docker-compose.yml(+9 -2)📄 Description
Summary
pg_isreadyhealthcheck topgvectorservice indocker-compose.ymlpentagidepends_on fromservice_startedtoservice_healthypgexporterdepends_on to useservice_healthyconditionProblem
The
pentagiservice depends onpgvectorwithcondition: service_started, which only waits for the container to start -- not for PostgreSQL to be ready to accept connections. This can cause the application to fail on startup if the database needs time to initialize (e.g., first run with volume creation, or after a crash).Solution
Add a
pg_isreadyhealthcheck topgvector, matching the pattern already used indocker-compose-langfuse.ymlfor the Langfuse PostgreSQL service. Bothpentagiandpgexporternow wait forservice_healthybefore starting.Image Compatibility Verification
The
vxcontrol/pgvector:latestimage is confirmed to be based on official PostgreSQL 16:PG_MAJOR=16,PG_VERSION=16.3-1.pgdg120+1(from image config env vars)Entrypoint: docker-entrypoint.sh(standard official postgres entrypoint)Cmd: postgres(standard postgres command)pg_isreadyis included in all official PostgreSQL images as part of thepostgresql-clientpackage. This was verified by inspecting the image manifest and config blob from Docker Hub registry API.Test Plan
docker-compose-langfuse.ymlprecedent$$escaping correct for Docker Compose variable substitutionvxcontrol/pgvector:latestimage verified as official postgres:16-based (pg_isready available)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.