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): update healthcheck of penpot backend container (#6272)

Gauthier POGAM--LE MONTAGNER1d4a19fb6104
diff --git a/templates/compose/penpot.yaml b/templates/compose/penpot.yaml
index fa92abb7f6..9a4e2de8d9 100644
--- a/templates/compose/penpot.yaml
+++ b/templates/compose/penpot.yaml
@@ -55,7 +55,7 @@ services:
- PENPOT_SMTP_TLS=${PENPOT_SMTP_TLS:-false}
- PENPOT_SMTP_SSL=${PENPOT_SMTP_SSL:-false}
healthcheck:
- test: ['CMD', 'curl', '-f', 'http://127.0.0.1:6060/readyz']
+ test: ['CMD', 'node', '-e', "require('http').get({host:'127.0.0.1', port:6060, path:'/readyz'}, res => process.exit(res.statusCode===200 ? 0 : 1)).on('error', () => process.exit(1));"]
interval: 10s
timeout: 30s
retries: 15