Spaces:
Sleeping
Sleeping
File size: 1,286 Bytes
a475b1f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | version: '3.8'
services:
# Development Image Search API
image-search-api-dev:
build:
context: .
target: development
ports:
- "8000:8000"
environment:
- INDEX_TYPE=HNSW
- TOPK_DEFAULT=10
- ENABLE_ADVANCED_RERANKING=true
- ENABLE_DIVERSITY_PENALTY=true
- ENABLE_QUERY_EXPANSION=true
- ENABLE_AUTO_MONITOR=true
- MONITOR_INTERVAL=60
- PYTHONPATH=/app
volumes:
- ./app:/app/app
- ./app/data:/app/data
- ./logs:/app/logs
restart: unless-stopped
networks:
- image-search-dev-network
# PostgreSQL for development
postgres-dev:
image: pgvector/pgvector:pg15
environment:
POSTGRES_DB: image_search_dev
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5433:5432"
volumes:
- postgres_dev_data:/var/lib/postgresql/data
restart: unless-stopped
networks:
- image-search-dev-network
# Redis for development
redis-dev:
image: redis:7-alpine
ports:
- "6380:6379"
volumes:
- redis_dev_data:/data
restart: unless-stopped
networks:
- image-search-dev-network
volumes:
postgres_dev_data:
redis_dev_data:
networks:
image-search-dev-network:
driver: bridge
|