-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 975 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
33 lines (31 loc) · 975 Bytes
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
version: '3.8'
services:
linway:
build: .
ports:
- "8000:8000"
volumes:
- ./rules:/app/rules
- linway-data:/app/data
- linway-db:/app/db
- linway-chroma:/app/chroma_data
environment:
- DATABASE_URL=sqlite:///./linway.db
- DEBUG=false
- DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:-}
- DEEPSEEK_BASE_URL=${DEEPSEEK_BASE_URL:-https://api.deepseek.com/v1}
- DEEPSEEK_MODEL=${DEEPSEEK_MODEL:-deepseek-chat}
- ZHIPU_API_KEY=${ZHIPU_API_KEY:-}
- CORS_ORIGINS=${CORS_ORIGINS:-http://localhost:5173,http://localhost:3000}
- ALLOWED_EXTENSIONS=.java,.py,.js,.ts,.go,.c,.cpp,.h,.hpp,.rs,.rb,.php
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health')"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
linway-data:
linway-db:
linway-chroma: