Skip to content

Latest commit

 

History

History

docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Weaviate / Qdrant Deployment

This document provides a quick guide on setting up Weaviate and Qdrant with Docker Compose. Follow the steps below to ensure a smooth setup.

Preparation Steps

  1. Create Data Folder: Before running docker-compose up, create folders named weaviate_data and qdrant_data in the same directory as your docker-compose.yml file.
mkdir weaviate_data
mkdir qdrant_data
  1. Rename Environment File: Rename the file .env.example to .env.
mv .env.example .env
  1. Update API Key: Open the .env file and replace the placeholder text with your actual OPENAI_APIKEY.
OPENAI_APIKEY=your_api_key_here

Deployment

Now you are ready to deploy Weaviate and Qdrant using Docker Compose. The profiles option in the docker-compose.yml file is crucial for controlling which services are started when you run Docker Compose. Each service in the docker-compose.yml file has a profiles property which contains the profiles under which the service should be run.

  1. Running Weaviate: To start the Weaviate service, use the following command:
docker compose --profile weaviate up
  1. Running Qdrant: To start the Qdrant service, use the following command:
docker compose --profile qdrant up
  1. Running Both Services: If you want to run both Weaviate and Qdrant services at the same time, you can specify both profiles in the command:
docker compose --profile weaviate --profile qdrant up

This way, you can control which services are started and run them either individually or together based on the profiles specified in the docker-compose.yml file.