Docker Compose issue during make install using Pinecone
TarunSrinivas23 opened this issue · 1 comments
Hey Devs !
Thanks for the contribution, I think this repository would be very much useful for my work. I had issues trying to build this, and feel it might be a quick fix. I am trying to use pinecone for the DB, so the steps I followed to build OpenChat clone, change the .env and then make install
. But this took a while and then threw an error while building the backend. Attaching the error logs and the .env file for your reference.
Error log:
ERROR: for qdrant Cannot start service qdrant: Mounts denied:
The path /tmp/qdrant_storage is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/ for more info.
ERROR: Encountered errors while bringing up the project.
make: *** [Makefile:28: install] Error 1
.env FILE:
OPENAI_API_KEY= 'key'
STORE=pinecone
PINECONE_API_KEY= 'key'
PINECONE_ENVIRONMENT= server-environment
PINECONE_INDEX_NAME=index-name
# QDRANT_URL
# QDRANT_URL=http://qdrant:6333 # I even tried to run the make install without commenting this out, same error.
Any help with this build issue would be really helpful. I am trying to use pinecone, I am not sure why I get a qdrant build error.
Thanks in advance !
Agreed, it's a bug.
If you are using Pinecone, please comment out the qdrant service in the docker-compose file for now. In case you want to use qdrant, change STORE=qdrant
, and make the following changes to the docker-compose.yml file. Basically, instead of using volume mounts, we should just use named volumes:
version: "3"
services:
# comment out this service if you don't want to use it
qdrant:
image: qdrant/qdrant
ports:
- 6333:6333
volumes:
- qdrant_storage:/qdrant/storage
networks:
- openchat_network
# Declare the volume in the volumes section
volumes:
qdrant_storage: