2020-12-27 18:06:09 +05:30
|
|
|
version: "3"
|
2020-05-04 17:28:01 +02:00
|
|
|
services:
|
|
|
|
haystack-api:
|
2020-07-07 16:25:36 +02:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: "deepset/haystack-cpu:latest"
|
2020-05-04 17:28:01 +02:00
|
|
|
ports:
|
|
|
|
- 8000:8000
|
|
|
|
environment:
|
2021-04-07 17:53:32 +02:00
|
|
|
# See rest_api/pipelines.yaml for configurations of Search & Indexing Pipeline.
|
|
|
|
- ELASTICSEARCHDOCUMENTSTORE_PARAMS_HOST=elasticsearch
|
2020-05-04 17:28:01 +02:00
|
|
|
restart: always
|
2020-07-07 16:25:36 +02:00
|
|
|
depends_on:
|
|
|
|
- elasticsearch
|
2021-04-12 12:46:52 +02:00
|
|
|
command: "/bin/bash -c 'sleep 15 && gunicorn rest_api.application:app -b 0.0.0.0 -k uvicorn.workers.UvicornWorker --workers 1 --timeout 180'"
|
2020-05-04 17:28:01 +02:00
|
|
|
elasticsearch:
|
2020-07-07 16:25:36 +02:00
|
|
|
# This will start an empty elasticsearch instance (so you have to add your documents yourself)
|
2021-03-05 10:55:36 +01:00
|
|
|
#image: "elasticsearch:7.9.2"
|
2020-07-07 16:25:36 +02:00
|
|
|
# If you want a demo image instead that is "ready-to-query" with some indexed Game of Thrones articles:
|
2020-12-27 18:06:09 +05:30
|
|
|
image: "deepset/elasticsearch-game-of-thrones"
|
2020-07-07 16:25:36 +02:00
|
|
|
ports:
|
|
|
|
- 9200:9200
|
2020-05-04 17:28:01 +02:00
|
|
|
environment:
|
2020-12-27 18:06:09 +05:30
|
|
|
- discovery.type=single-node
|
|
|
|
ui:
|
2021-04-07 17:53:32 +02:00
|
|
|
build:
|
|
|
|
context: ui
|
|
|
|
dockerfile: Dockerfile
|
2020-12-27 18:06:09 +05:30
|
|
|
ports:
|
|
|
|
- 8501:8501
|
|
|
|
environment:
|
|
|
|
- API_ENDPOINT=http://haystack-api:8000
|