From 84e157a05b0f6d9e9f4e593753783d1423e2d98e Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Fri, 24 Dec 2021 11:59:05 +0100 Subject: [PATCH] Added healthchecks to matrix postgres containers --- stacks/matrix.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/stacks/matrix.yml b/stacks/matrix.yml index 2efe251..3a12c01 100644 --- a/stacks/matrix.yml +++ b/stacks/matrix.yml @@ -59,6 +59,13 @@ services: placement: constraints: - 'node.labels.class==matrix' + + healthcheck: + test: pg_isready + interval: 30s + timeout: 5s + retries: 3 + start_period: 15s environment: - 'POSTGRES_DB=matrix_fb' @@ -109,6 +116,13 @@ services: constraints: - 'node.labels.class==matrix' + healthcheck: + test: pg_isready + interval: 30s + timeout: 5s + retries: 3 + start_period: 15s + environment: - 'POSTGRES_DB=matrix_signal' - 'POSTGRES_USER=matrix_signal'