From e71bcee9b5faf0d193da21ea0282b9317a8ee992 Mon Sep 17 00:00:00 2001 From: Zuev Date: Wed, 25 Mar 2026 23:53:23 +0300 Subject: [PATCH] chore: Configure database healthcheck, backend service dependency on DB health, and disable OpenTelemetry SDK. --- compose.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compose.yaml b/compose.yaml index 0e3481d..a5bd0a0 100755 --- a/compose.yaml +++ b/compose.yaml @@ -8,6 +8,9 @@ services: environment: POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + depends_on: + db: + condition: service_healthy networks: - proxy @@ -32,6 +35,11 @@ services: POSTGRES_USER: myuser POSTGRES_PASSWORD: supersecretpassword POSTGRES_DB: app_db + healthcheck: + test: [ "CMD-SHELL", "pg_isready -U myuser -d app_db" ] + interval: 5s + timeout: 5s + retries: 5 networks: - proxy