adjust startup sequence in docker compose

This commit is contained in:
Malte Pietsch 2021-10-13 19:43:58 +02:00
parent caba590576
commit d0b71d39e6
2 changed files with 4 additions and 2 deletions

View File

@ -23,7 +23,7 @@ services:
- DOCUMENTSTORE_PARAMS_HOST=elasticsearch
depends_on:
- elasticsearch
command: "/bin/bash -c 'sleep 15 && gunicorn rest_api.application:app -b 0.0.0.0 -k uvicorn.workers.UvicornWorker --workers 1 --timeout 180'"
command: "/bin/bash -c 'sleep 10 && gunicorn rest_api.application:app -b 0.0.0.0 -k uvicorn.workers.UvicornWorker --workers 1 --timeout 180'"
elasticsearch:
# This will start an empty elasticsearch instance (so you have to add your documents yourself)
#image: "elasticsearch:7.9.2"
@ -43,3 +43,4 @@ services:
environment:
- API_ENDPOINT=http://haystack-api:8000
- EVAL_FILE=eval_labels_example.csv
command: "/bin/bash -c 'sleep 15 && streamlit run webapp.py'"

View File

@ -15,7 +15,7 @@ services:
- DOCUMENTSTORE_PARAMS_HOST=elasticsearch
depends_on:
- elasticsearch
command: "/bin/bash -c 'sleep 15 && gunicorn rest_api.application:app -b 0.0.0.0 -k uvicorn.workers.UvicornWorker --workers 1 --timeout 180'"
command: "/bin/bash -c 'sleep 10 && gunicorn rest_api.application:app -b 0.0.0.0 -k uvicorn.workers.UvicornWorker --workers 1 --timeout 180'"
elasticsearch:
# This will start an empty elasticsearch instance (so you have to add your documents yourself)
#image: "elasticsearch:7.9.2"
@ -35,3 +35,4 @@ services:
environment:
- API_ENDPOINT=http://haystack-api:8000
- EVAL_FILE=eval_labels_example.csv
command: "/bin/bash -c 'sleep 15 && streamlit run webapp.py'"