Give Etherpad time to start before it is marked unhealthy (#43)

The image's own health check allows three failed checks from the first
second. Etherpad needs 15-40 seconds on its share of CPU, so deploys
failed with "app-1 is unhealthy". Add a health check with a 90 second
start period and more retries (c3).
This commit is contained in:
michael authored and GitHub committed 2026-11-24 17:32:36 -05:00
1 parent a227920f4a
commit ef277d18a7
1 file changed
+10 -1
+10 -1
View File
@@ -3,7 +3,7 @@ x-harbor:
slug: etherpad
name: Etherpad
description: Real-time collaborative text editor.
version: "3.3.21-c2"
version: "3.3.21-c3"
primary: { service: app, port: 9001 }
health_path: /health
default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 }
@@ -51,6 +51,15 @@ services:
volumes:
- var:/opt/etherpad-lite/var
- plugins:/opt/etherpad-lite/src/plugin_packages
# The image's own check, with room to start. Etherpad takes 15-40 seconds
# to come up on a small share of CPU, and the image allows only three
# failed checks from the first second, so deploys were marked unhealthy.
healthcheck:
test: [ "CMD-SHELL", "wget -qO- http://127.0.0.1:9001/health | grep -E 'pass|ok|up' > /dev/null || exit 1" ]
interval: 10s
timeout: 5s
start_period: 90s
retries: 6
db:
image: postgres:18.7-alpine