From d2064e462cd3c0e7dd131cdc1b7692d483312b73 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Tue, 16 Jul 2024 16:59:53 +0300 Subject: [PATCH] env --- docker-compose.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7f59348..bcf44f3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,12 +7,15 @@ services: restart: always expose: - "8000" - # healthcheck: - # test: curl -f http://localhost:8000/ || exit 1 - # interval: 5s - # timeout: 3s + healthcheck: + test: curl -f http://localhost:8000/ || exit 1 + interval: 5s + timeout: 3s + retries: 20 volumes: - ./.env:/app/.env + - ./pyproject.toml:/app/pyproject.toml + - ./poetry.lock:/app/poetry.lock networks: - toinv-network image: ci.svs-tech.pro/toinv_back:latest @@ -25,9 +28,9 @@ services: restart: always expose: - "3000" - # depends_on: - # back: - # condition: service_healthy + depends_on: + back: + condition: service_healthy networks: - toinv-network image: ci.svs-tech.pro/toinv_front:latest @@ -38,9 +41,9 @@ services: restart: always ports: - "${WEB_PORT}:80" - # depends_on: - # back: - # condition: service_healthy + depends_on: + back: + condition: service_healthy links: - back:back - front:front