[PATCH slidge v1] signald add health check
Export this patch
add a health check for signald and set slidge-signal dependency to wait for signald to become healthy
justify health retries
---
docker-compose.yml | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index 4ac608d..d86d600 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -74,8 +74,10 @@ services:
- ./persistent/web:/slidge-web
- ./dev/confs/slidge-example.ini:/slidge-example.ini
depends_on:
- - prosody
- - signald
+ prosody:
+ condition: service_started
+ signald:
+ condition: service_healthy
slidge-facebook:
build:
@@ -212,6 +214,11 @@ services:
environment:
- SIGNALD_TRUST_ALL_KEYS:true
- SIGNALD_TRUST_NEW_KEYS:true
+ healthcheck:
+ test: [ "CMD", "bash", "-c", "signaldctl raw --socket /signald/signald.sock v1 version '{}' >/dev/null 2>&1" ]
+ interval: 5s
+ timeout: 1s
+ retries: 5
postgresql:
environment:
--
2.34.1
slidge/patches: SUCCESS in 1h8m8s
[signald add health check][0] from [Jonny Rimkus][1]
[0]: https://lists.sr.ht/~nicoco/public-inbox/patches/38923
[1]: mailto:jonny@rimkus.it
✓ #939028 SUCCESS slidge/patches/ci.yml https://builds.sr.ht/~nicoco/job/939028
✓ #939030 SUCCESS slidge/patches/debian.yml https://builds.sr.ht/~nicoco/job/939030
✓ #939029 SUCCESS slidge/patches/container.yml https://builds.sr.ht/~nicoco/job/939029