-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (74 loc) · 1.82 KB
/
docker-compose.yml
File metadata and controls
79 lines (74 loc) · 1.82 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
78
79
# Docker Compose configuration for PTR Tool Filter
services:
qdrant:
image: qdrant/qdrant:latest
container_name: ptr_qdrant
restart: unless-stopped
ports:
- "6333:6333" # REST API
- "6334:6334" # gRPC
volumes:
- ./qdrant_storage:/qdrant/storage:z
environment:
- QDRANT__LOG_LEVEL=INFO
- QDRANT__SERVICE__HTTP_PORT=6333
- QDRANT__SERVICE__GRPC_PORT=6334
networks:
- ptr-network
redis:
image: redis:7.2-alpine
container_name: ptr_redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- ./redis_data:/data
command: redis-server --appendonly yes --maxmemory 2gb --maxmemory-policy allkeys-lru
networks:
- ptr-network
# Optional: RedisInsight for debugging
redisinsight:
image: redislabs/redisinsight:latest
container_name: ptr_redisinsight
restart: unless-stopped
ports:
- "8001:8001"
volumes:
- ./redisinsight:/db
depends_on:
- redis
networks:
- ptr-network
# PTR Tool Filter API
api:
build:
context: .
dockerfile: Dockerfile
container_name: ptr_api
restart: unless-stopped
ports:
- "8000:8000"
environment:
# Override any environment variables here
- QDRANT_HOST=qdrant
- REDIS_HOST=redis
- API_ENV=production
env_file:
- .env
depends_on:
- qdrant
- redis
volumes:
# Mount source code for development (comment out for production)
- ./src:/app/src:ro
# Mount .env file
- ./.env:/app/.env:ro
# Mount toolbench data for evaluation
- ./toolbench_data:/app/toolbench_data:ro
# Mount evaluation results directory
- ./evaluation_results:/app/evaluation_results
networks:
- ptr-network
networks:
ptr-network:
driver: bridge