Skip to content

Commit

Permalink
adjust startup sequence in docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
tholor committed Oct 13, 2021
1 parent caba590 commit d0b71d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker-compose-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -43,3 +43,4 @@ services:
environment:
- API_ENDPOINT=https://haystack-api:8000
- EVAL_FILE=eval_labels_example.csv
command: "/bin/bash -c 'sleep 15 && streamlit run webapp.py'"
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -35,3 +35,4 @@ services:
environment:
- API_ENDPOINT=https://haystack-api:8000
- EVAL_FILE=eval_labels_example.csv
command: "/bin/bash -c 'sleep 15 && streamlit run webapp.py'"

0 comments on commit d0b71d3

Please sign in to comment.