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.

add timeout / retries to healthchecks

Blue Mouse8745054adfe9
diff --git a/templates/compose/swetrix.yaml b/templates/compose/swetrix.yaml
index 756a968399..2482ac5e94 100644
--- a/templates/compose/swetrix.yaml
+++ b/templates/compose/swetrix.yaml
@@ -18,6 +18,8 @@ services:
test:
- CMD-SHELL
- wget --no-verbose --tries=1 --spider http://localhost:3000/ping || exit 1
+ timeout: 5s
+ retries: 10
interval: 30s
start_period: 15s
@@ -62,6 +64,8 @@ services:
test:
- CMD-SHELL
- wget --no-verbose --tries=1 --spider http://localhost:5005/ping || exit 1
+ timeout: 5s
+ retries: 10
interval: 30s
start_period: 15s
@@ -76,6 +80,8 @@ services:
test:
- CMD-SHELL
- redis-cli ping | grep PONG
+ timeout: 5s
+ retries: 10
interval: 30s
start_period: 1m
@@ -91,6 +97,8 @@ services:
test:
- CMD-SHELL
- wget --no-verbose --tries=1 -O - http://127.0.0.1:8123/ping || exit 1
+ timeout: 5s
+ retries: 10
interval: 30s
start_period: 1m
cap_add: