Create a docker-compose.yml file (see docker/docker-compose.yml) and add the following instructions:
version: "3.8"
services:
ollama:
image: ollama/ollama:latest
container_name: ollama
ports:
- "11434:11434"
volumes:
- ollama_storage:/root/.ollama
restart: unless-stopped
volumes:
ollama_storage:
- run docker-compose.yml file to pull the image for ollama and start the container
docker compose up -d
- to pull the ollama models
docker compose exec ollama ollama pull all-minilm
docker compose exec ollama ollama pull tinyllama
-
Create a Datastax Astra DB database and keyspace, then add the required variables to your
.envfile (See.env.example). -
Seed the vector store:
yarn seedTo run the development server:
yarn install
yarn devOpen http://localhost:3000 with your browser to see the result.
