197f70ee12
- Added Qdrant service to both docker-compose files for production and development. - Updated environment variables in .env.example and settings.py to include Qdrant configuration. - Included necessary dependencies for Qdrant and ChromaDB in requirements.txt. - Updated .gitignore to exclude ChromaDB data files.
24 lines
551 B
Bash
24 lines
551 B
Bash
# Django
|
|
SECRET_KEY=your-secret-key-change-in-production
|
|
DEBUG=1
|
|
ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0
|
|
|
|
# Database (MySQL) - used by Django in Docker
|
|
DB_ENGINE=django.db.backends.mysql
|
|
DB_NAME=croplogic
|
|
DB_USER=croplogic
|
|
DB_PASSWORD=changeme
|
|
DB_HOST=db
|
|
DB_PORT=3306
|
|
|
|
# Optional: for running manage.py from host (local DB)
|
|
# DB_HOST=127.0.0.1
|
|
|
|
# Qdrant Vector DB (RAG)
|
|
QDRANT_HOST=qdrant
|
|
QDRANT_PORT=6333
|
|
|
|
# Avalai Embedding API (OpenAI-compatible)
|
|
AVALAI_API_KEY=your-avalai-api-key
|
|
# AVALAI_BASE_URL=https://api.avalai.ir/v1 # optional, default
|