From 2445d9f33af7a0e4d70850e34c21ff251e0a761f Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Mon, 12 Jun 2023 14:14:43 +0200 Subject: [PATCH] fix: healthchecks --- compose.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/compose.yml b/compose.yml index 937cdf2..022fe5d 100644 --- a/compose.yml +++ b/compose.yml @@ -3,7 +3,7 @@ version: "3.8" services: app: - image: "matrixdotorg/synapse:v1.84.1" + image: "matrixdotorg/synapse:v1.81.0" volumes: - "data:/data" depends_on: @@ -61,7 +61,13 @@ services: - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - - "coop-cloud.${STACK_NAME}.version=3.8.0+v1.84.1" + - "coop-cloud.${STACK_NAME}.version=3.6.0+v1.81.0" + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8008/health"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 1m db: image: postgres:13-alpine @@ -77,7 +83,11 @@ services: networks: - internal healthcheck: - test: ["CMD", "pg_isready", "-U", "$POSTGRES_USER" ] + test: ["CMD", "pg_isready", "-U", "synapse"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 1m volumes: - postgres:/var/lib/postgresql/data deploy: