From c950882e0e325f67b306939d3c06a7cfb1d1cb8d Mon Sep 17 00:00:00 2001 From: leca Date: Thu, 31 Oct 2024 07:52:37 +0300 Subject: [PATCH] right container start sequence --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index dca00e0..30f297e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,7 @@ services: - 8012:8080 depends_on: - database + restart: on-failure volumes: - ./data/temp:/temp - ./data/uploads:/uploads @@ -19,3 +20,5 @@ services: POSTGRES_USER: bsfe POSTGRES_PASSWORD: Ch@NgEME! POSTGRES_DB: bsfe + healthcheck: + test: ["CMD", "pg_isready", "-U", "bsfe"]