-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (67 loc) · 1.77 KB
/
Copy pathdocker-compose.yml
File metadata and controls
77 lines (67 loc) · 1.77 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3.8'
services:
# BioPortal Concept Mapping API
api:
build:
context: .
dockerfile: Dockerfile
args:
CACHE_DIR: "/app/.cache"
container_name: test-bioportal-concept-mapping
image: testbioapi
ports:
- "18000:8000"
volumes:
# Mount database
- ${CACHE_ROOT:-./.ontology}/bioportal.db:/app/bioportal.db:ro
# Mount cache for model persistence
- ${CACHE_ROOT:-./.ontology}:/app/.cache # Docker will auto create ${CACHE_ROOT} if it does not exist
environment:
# Cache Env
- BM25_CACHE_DIR=${BM25_CACHE_DIR}
- INDEX_CACHE_DIR=${INDEX_CACHE_DIR}
- EMBED_CACHE_DIR=${EMBED_CACHE_DIR}
- DATABASE_PATH=/app/bioportal.db
# API Configuration
- API_HOST=0.0.0.0
- API_PORT=8000
- LOG_LEVEL=INFO
# Retrieval Configuration
- BM25_WEIGHT=0.3
- DENSE_WEIGHT=0.7
- EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
# Re-ranking Configuration
- RERANKER_TYPE=ensemble
- CROSS_ENCODER_WEIGHT=0.5
- LATE_INTERACTION_WEIGHT=0.3
- BIOMEDICAL_WEIGHT=0.2
# Performance
- MAX_CANDIDATES=20
- MAX_RESULTS=5
# Resource limits
deploy:
resources:
limits:
cpus: '4'
memory: 8G
reservations:
cpus: '2'
memory: 4G
# Restart policy
restart: unless-stopped
# Health check
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Logging
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
default:
name: bioportal-network