Note: This supports haystack version 1.x.x which has REST API support. Version 2.x.x does not have REST API support hence is not compatible with this app.
API_SERVER_DIR_PATH=<path_to_your_api_server_dockerfile_directory> \
HAYSTACK_DIR_PATH=<path_to_your_haystack_directory> \
docker compose up
Note: It might take a while to run the elasticsearch
and then haystack-api
. Once you see the below INFO
log, you can be sure that the haystack server is finally up and running.
haystack-api-1 | INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
API_SERVER_DIR_PATH=/Users/subratpattanaik/Desktop/work/project-xyz/institute-api \
HAYSTACK_DIR_PATH=/Users/subratpattanaik/Desktop/work/project-xyz/haystack \
docker compose up
To stop the services, run docker compose down
.
- Run the API server.
- Run haystack API using Haystack docs.
- Run Redis server.
- Add
.env
accordingly to the keys from.env.example
and their corresponding value as per your setup. - Run the API gateway using
npm run start
.