mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-29 16:08:38 +00:00
* feat: Change `docker-compose.yml` file * Add `volumes` to read from the local `/pipelines` folder * Change the `PIPELINE_YAML_PATH` value and refer to the local `pipelines.haystack-pipeline.yml` * Change the elasticsearch image * Fix volume * Update readme to direct users to the new demos repository
32 lines
849 B
YAML
32 lines
849 B
YAML
services:
|
|
|
|
haystack-api:
|
|
# Pull Haystack's latest commit
|
|
image: "deepset/haystack:cpu-main"
|
|
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
|
|
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
|