From 473a49f6c805be45ed75bce89642c7a625a5d656 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Thu, 12 Jun 2025 14:12:49 +0100 Subject: [PATCH] Add healthcheck for frontend, pin versions for minio --- compose.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/compose.yml b/compose.yml index 71d244e..25dc832 100644 --- a/compose.yml +++ b/compose.yml @@ -92,6 +92,12 @@ services: - "traefik.enable=false" - "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}" - "coop-cloud.${STACK_NAME}.version=0.0.0+v3.3.0" + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8080"] + interval: 15s + timeout: 30s + retries: 20 + start_period: 10s backend: image: lasuite/impress-backend:v3.3.0 @@ -119,6 +125,7 @@ services: networks: - backend environment: *yprovider-env + # NOTE: healthcheck - `wget` is available in the container, but `wget http://localhost:4444` gives a 403 db: image: postgres:16 @@ -142,7 +149,7 @@ services: minio-bootstrap: # NOTE: Not started by default, only run with a manual `abra app restart` / `docker service scale` - image: minio/mc + image: minio/mc:RELEASE.2025-05-21T01-59-54Z environment: *minio-env networks: - backend @@ -159,7 +166,7 @@ services: condition: none minio: - image: minio/minio + image: minio/minio:RELEASE.2025-05-24T17-08-30Z environment: *minio-env healthcheck: test: ["CMD", "mc", "ready", "local"]