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