From 38911193dbceeffd9d9da2bcd2d74c060d76ccd7 Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 17 Jul 2024 12:53:15 +0200 Subject: [PATCH] better healthchecks --- compose.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/compose.yml b/compose.yml index 190e365..76e24c9 100644 --- a/compose.yml +++ b/compose.yml @@ -52,9 +52,9 @@ services: - internal - proxy healthcheck: - test: "bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/9000; exit $$?;'" + test: "ak healthcheck" interval: 30s - timeout: 10s + timeout: 30s retries: 10 start_period: 5m environment: *env @@ -108,6 +108,12 @@ services: - source: flow_invalidation target: /blueprints/6_flow_invalidation.yaml environment: *env + healthcheck: + test: "ak healthcheck" + interval: 30s + timeout: 30s + retries: 10 + start_period: 5m db: image: postgres:15.7