Trouble using Documentstores other than elastic #1368
-
I am trying to get the docker compose demo to work dense retrieval(which worked for my usecase on colab). The poblem is when I run the docker compose file with only haystack_ui and haystack_api images, it gets into a weird loop where haystack_api worker keeps timing out and it runs all over again. I did change the necessary yaml pipeline file but being a complete newbie to docker, I'm probably making some major mistake. Attaching my docker-compse.yaml and pipelines.yaml below. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @advaitdeshmukh, it seems that the docker image for the API is not using your custom You can replace version: "3"
services:
haystack-api:
build:
context: .
dockerfile: Dockerfile
image: "deepset/haystack-cpu:latest"
pull_policy: always
volumes:
- ./rest_api/pipeline:/home/user/rest_api/pipeline
ports:
- 8000:8000
restart: always
command: "/bin/bash -c 'sleep 15 && gunicorn rest_api.application:app -b 0.0.0.0 -k uvicorn.workers.UvicornWorker --workers 1 --timeout 180'"
ui:
build:
context: ui
dockerfile: Dockerfile
ports:
- 8501:8501
environment:
- API_ENDPOINT=http://haystack-api:8000
- EVAL_FILE=eval_labels_example.csv If you still face issues, please share the complete logs of |
Beta Was this translation helpful? Give feedback.
-
Hi @advaitdeshmukh, I'm closing this thread. Let's continue the discussion on #1411. |
Beta Was this translation helpful? Give feedback.
Hi @advaitdeshmukh, I'm closing this thread. Let's continue the discussion on #1411.