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): add healthcheck on cap-captcha.yaml

ShadowArcaniste26d4e39e62c
diff --git a/templates/compose/cap-captcha.yaml b/templates/compose/cap-captcha.yaml
index 2cd1a286d4..3525663cd4 100644
--- a/templates/compose/cap-captcha.yaml
+++ b/templates/compose/cap-captcha.yaml
@@ -12,6 +12,12 @@ services:
- SERVICE_URL_CAP_3000
- ADMIN_KEY=$SERVICE_PASSWORD_ADMIN
- REDIS_URL=redis://valkey:6379
+ healthcheck:
+ test: ["CMD", "bun", "-e", "fetch('http://localhost:3000').then(r => { if (!r.ok) process.exit(1) }).catch(() => process.exit(1))"]
+ interval: 30s
+ timeout: 5s
+ retries: 3
+ start_period: 5s
depends_on:
valkey:
condition: service_healthy