Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(service): affine pgvector healthcheck

peaklabs-dev879cb5832cc8
diff --git a/templates/compose/affine.yaml b/templates/compose/affine.yaml
index 92231d41ad..9fa6c2abd0 100644
--- a/templates/compose/affine.yaml
+++ b/templates/compose/affine.yaml
@@ -78,15 +78,13 @@ services:
image: pgvector/pgvector:pg16
volumes:
- affine-postgres-data:/var/lib/postgresql/data
- healthcheck:
- test:
- - CMD-SHELL
- - 'pg_isready -U affine'
- interval: 10s
- timeout: 5s
- retries: 5
environment:
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
- POSTGRES_DB=${POSTGRES_DB:-affine}
- PGDATA=/var/lib/postgresql/data/pgdata
+ healthcheck:
+ test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
+ interval: 5s
+ timeout: 20s
+ retries: 10