ai-textbook-backend / docker-compose.yml
Naveedtechlab's picture
Add full AI Native Textbook project source code
db7c1e8
version: '3.8'
services:
backend:
build: .
ports:
- "8000:8000"
environment:
- NEON_DB_URL=${NEON_DB_URL}
- QDRANT_URL=${QDRANT_URL}
- QDRANT_API_KEY=${QDRANT_API_KEY}
- GEMINI_API_KEY=${GEMINI_API_KEY}
- SECRET_KEY=${SECRET_KEY}
- JWT_EXPIRES_IN=${JWT_EXPIRES_IN:-3600}
- DEBUG=${DEBUG:-false}
- LOG_LEVEL=${LOG_LEVEL:-info}
volumes:
- .:/app
depends_on:
- postgres
- qdrant
restart: unless-stopped
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_DB=ai_backend
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
qdrant:
image: qdrant/qdrant:latest
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
restart: unless-stopped
volumes:
postgres_data:
qdrant_data: