haystack/docker-compose.yml
Mayank Jobanputra fa17f0973e
chore: increased timeout for loading pipelines through API (#3977)
* increased timeout

* Added comment for users to increase timeout while using docker compose file

* changed the comment with appropriate msg

* changed the comment indent

* changed the indent again
2023-01-30 11:30:47 +01:00

35 lines
1.1 KiB
YAML

services:
haystack-api:
image: "deepset/haystack:cpu"
volumes:
- ./rest_api/rest_api/pipeline:/opt/pipelines
ports:
- 8000:8000
restart: on-failure
environment:
- DOCUMENTSTORE_PARAMS_HOST=elasticsearch
- PIPELINE_YAML_PATH=/opt/pipelines/pipelines.haystack-pipeline.yml
- TOKENIZERS_PARALLELISM=false
# Uncomment the following line to customise how much time (in seconds) a worker can spend serving a request
# before it times out. This should include the time required to cache the models and setup the pipelines.
# - GUNICORN_CMD_ARGS="--timeout=3000"
depends_on:
elasticsearch:
condition: service_healthy
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:7.17.6"
ports:
- 9200:9200
restart: on-failure
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
healthcheck:
test: curl --fail http://localhost:9200/_cat/health || exit 1
interval: 10s
timeout: 1s
retries: 10