From 3b4604d0bd811e48fb9a3c1a8ef223bcf0cae797 Mon Sep 17 00:00:00 2001 From: Vincent Pochet Date: Fri, 25 Aug 2023 11:30:23 +0200 Subject: [PATCH] misc: Add healthcheck for clock and worker --- docker-compose.dev.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 8b752f3..db0f741 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -136,6 +136,12 @@ services: - SEGMENT_WRITE_KEY=${SEGMENT_WRITE_KEY:-} - LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT:-} - LAGO_FROM_EMAIL=${LAGO_FROM_EMAIL:-noreply@getlago.com} + healthcheck: + test: ps aux | grep '[s]idekiq\ 7' || exit 1 + interval: 60s + retries: 5 + start_period: 20s + timeout: 10s api-clock: image: api @@ -157,6 +163,12 @@ services: - ENCRYPTION_KEY_DERIVATION_SALT={ENCRYPTION_KEY_DERIVATION_SALT:-your-encrpytion-derivation-salt} - SEGMENT_WRITE_KEY=${SEGMENT_WRITE_KEY:-} - LAGO_DISABLE_SEGMENT=${LAGO_DISABLE_SEGMENT:-} + healthcheck: + test: ps aux | grep 'bin/clockwork\ ./clock.rb' || exit 1 + interval: 60s + retries: 5 + start_period: 20s + timeout: 10s pdf: image: getlago/lago-gotenberg:7