-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (54 loc) · 1.53 KB
/
Copy pathdocker-compose.yml
File metadata and controls
57 lines (54 loc) · 1.53 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
version: '3.8'
services:
# PostgreSQL with pgvector
db:
image: pgvector/pgvector:pg16
container_name: ticketpilot-db
environment:
POSTGRES_DB: ticketpilot
POSTGRES_USER: ticketpilot
POSTGRES_PASSWORD: ${DB_PASSWORD:-ticketpilot}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ticketpilot"]
interval: 10s
timeout: 5s
retries: 5
# TicketPilot API
api:
build: .
container_name: ticketpilot-api
ports:
- "8000:8000"
environment:
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=ticketpilot
- DB_USER=ticketpilot
- DB_PASSWORD=${DB_PASSWORD:-ticketpilot}
- EMBEDDING_PROVIDER=openai_compatible
- EMBEDDING_BASE_URL=${EMBEDDING_BASE_URL}
- EMBEDDING_API_KEY=${EMBEDDING_API_KEY}
- EMBEDDING_MODEL=${EMBEDDING_MODEL:-text-embedding-v3}
- EMBEDDING_DIM=${EMBEDDING_DIM:-1024}
- TICKETPILOT_LLM_PROVIDER=openai_compatible
- TICKETPILOT_LLM_BASE_URL=${TICKETPILOT_LLM_BASE_URL}
- TICKETPILOT_LLM_API_KEY=${TICKETPILOT_LLM_API_KEY}
- TICKETPILOT_LLM_MODEL=${TICKETPILOT_LLM_MODEL:-deepseek-chat}
depends_on:
db:
condition: service_healthy
volumes:
- ./logs:/app/logs
- ./reports:/app/reports
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 30s
timeout: 10s
start_period: 30s
retries: 3
volumes:
postgres_data: