From f16fc79e60001e1ad89b032aed7b7f1e73948aa2 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 30 Mar 2026 11:40:20 +0100 Subject: [PATCH] Add a healthcheck for the backup container --- compose.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 9d50e8b9..ffb3ca76 100644 --- a/compose.yaml +++ b/compose.yaml @@ -44,7 +44,10 @@ services: entrypoint: /usr/local/bin/litestream command: replicate -config /opt/litestream/litestream.yaml healthcheck: - disable: true + test: ["CMD", "litestream", "databases", "-config", "/opt/litestream/litestream.yaml"] + interval: 30s + timeout: 10s + retries: 3 environment: - LITESTREAM_ACCESS_KEY_ID - LITESTREAM_SECRET_ACCESS_KEY