forked from deepset-ai/haystack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (29 loc) · 849 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (29 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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