-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (82 loc) · 2 KB
/
docker-compose.yml
File metadata and controls
89 lines (82 loc) · 2 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
80
81
82
83
84
85
86
87
88
89
services:
lora_model_inference:
build:
context: ./api/model_api
dockerfile: Dockerfile
container_name: lora_model_inference
ports:
- "8001:8001"
volumes:
- ./spider_data:/app/spider_data:ro
- ./models:/app/models:ro
- ./lora_adapter:/app/lora_adapter:ro
- ./logs:/app/logs
environment:
- DATABASE_PATH=/app/spider_data/database
- PYTHONUNBUFFERED=1
- LORA_ADAPTER_PATH=/app/lora_adapter
- BASE_MODEL_PATH=/app/models/Qwen2.5-Coder-3B-Instruct
- LOAD_IN_4BIT=false
networks:
- spider_network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 120s
spider_fastapi:
build:
context: ./api/spider_api
dockerfile: Dockerfile
container_name: spider_fastapi
ports:
- "8000:8000"
volumes:
- ./spider_data:/app/spider_data:ro
- ./logs:/app/logs
environment:
- DATABASE_PATH=/app/spider_data/database
- PYTHONUNBUFFERED=1
networks:
- spider_network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
llm_api:
build:
context: ./api/llm_api
dockerfile: Dockerfile
container_name: llm_api
ports:
- "8002:8002"
environment:
- PYTHONUNBUFFERED=1
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
networks:
- spider_network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8002/health"]
interval: 30s
timeout: 10s
retries: 3
streamlit_ui:
build:
context: ./api/streamlit_app
dockerfile: Dockerfile
container_name: streamlit_ui
ports:
- "8501:8501"
environment:
- PYTHONUNBUFFERED=1
networks:
- spider_network
depends_on:
- lora_model_inference
- spider_fastapi
- llm_api
networks:
spider_network:
driver: bridge