From dfbd7178dbfd65f7a3948b2c47797403e32c6059 Mon Sep 17 00:00:00 2001 From: rare-magma Date: Mon, 29 Jul 2024 21:44:34 +0200 Subject: [PATCH] Revert "ci: remove redundant healthchecks" This reverts commit 59697c60e6d9dac1c05bca120f4b0c1796a3dcf7. Signed-off-by: rare-magma --- docker/docker-compose.build.yml | 5 +++++ docker/docker-compose.yml | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docker/docker-compose.build.yml b/docker/docker-compose.build.yml index 9887244e4..28990692d 100644 --- a/docker/docker-compose.build.yml +++ b/docker/docker-compose.build.yml @@ -16,6 +16,11 @@ services: condition: service_healthy redis: condition: service_healthy + healthcheck: + test: ['CMD-SHELL', 'curl -f http://localhost:3333/api/v1/health'] + interval: 10s + timeout: 5s + retries: 5 postgres: image: postgres:15 env_file: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index f78c89f63..d2be4db68 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -28,7 +28,11 @@ services: condition: service_healthy redis: condition: service_healthy - + healthcheck: + test: ['CMD-SHELL', 'curl -f http://localhost:3333/api/v1/health'] + interval: 10s + timeout: 5s + retries: 5 postgres: image: docker.io/library/postgres:15 cap_drop: