-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (35 loc) · 1.11 KB
/
docker-compose.yml
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
32
33
34
35
36
37
38
version: "3"
services:
elasticsearch:
image: "deepset/elasticsearch-countries-and-capitals"
ports:
- 9200:9200
restart: on-failure
haystack-api:
image: "deepset/haystack:cpu"
ports:
- 8000:8000
restart: on-failure
volumes:
- ./:/opt/pipelines
environment:
- DOCUMENTSTORE_PARAMS_HOST=elasticsearch
- PIPELINE_YAML_PATH=/opt/pipelines/my_pipeline_dpr.haystack-pipeline.yml
depends_on:
elasticsearch:
condition: service_healthy
ui:
image: "deepset/demo-explore-the-world"
ports:
- 8501:8501
restart: on-failure
environment:
- API_ENDPOINT=http://haystack-api:8000
# The value fot the following variables will be read from the host, if present.
# They can also be temporarily set for docker-compose, for example:
# $ DISABLE_FILE_UPLOAD=1 DEFAULT_DOCS_FROM_RETRIEVER=5 docker-compose up
- DISABLE_FILE_UPLOAD
- DEFAULT_QUESTION_AT_STARTUP
- DEFAULT_DOCS_FROM_RETRIEVER
- DEFAULT_NUMBER_OF_ANSWERS
command: "/bin/bash -c 'sleep 15 && python -m streamlit run ui/webapp.py'"