-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
109 lines (102 loc) · 3.02 KB
/
docker-compose.yml
File metadata and controls
109 lines (102 loc) · 3.02 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Docker Compose for local development and testing
# For production, use Azure Container Apps or Kubernetes
version: '3.8'
services:
# Main Support Agent API
api:
build:
context: .
dockerfile: Dockerfile
target: production
container_name: support-agent-api
ports:
- "8000:8000"
environment:
- ENVIRONMENT=development
- LOG_LEVEL=INFO
- DATABASE_URL=postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD}@db:5432/supportagent
- AZURE_OPENAI_ENDPOINT=${AZURE_OPENAI_ENDPOINT}
- AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY}
- AZURE_OPENAI_DEPLOYMENT=gpt-5.1-codex
- AZURE_OPENAI_EMBEDDING_DEPLOYMENT=text-embedding-3-large
- AZURE_AI_SEARCH_ENDPOINT=${AZURE_AI_SEARCH_ENDPOINT}
- AZURE_AI_SEARCH_KEY=${AZURE_AI_SEARCH_KEY}
- DATABRICKS_HOST=${DATABRICKS_HOST}
- DATABRICKS_TOKEN=${DATABRICKS_TOKEN}
- LANGCHAIN_API_KEY=${LANGCHAIN_API_KEY}
- LANGCHAIN_PROJECT=support-agent-dev
- API_KEYS=${API_KEYS}
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health/live"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped
networks:
- support-agent-network
# PostgreSQL with pgvector for vector storage
db:
image: pgvector/pgvector:pg16
container_name: support-agent-db
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=supportagent
volumes:
- postgres_data:/var/lib/postgresql/data
- ./scripts/init-db.sql:/docker-entrypoint-initdb.d/init.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d supportagent"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- support-agent-network
# Prometheus for metrics collection
prometheus:
image: prom/prometheus:v2.47.0
container_name: support-agent-prometheus
ports:
- "9090:9090"
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.enable-lifecycle'
restart: unless-stopped
networks:
- support-agent-network
# Grafana for dashboards
grafana:
image: grafana/grafana:10.1.0
container_name: support-agent-grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=${GF_ADMIN_PASSWORD}
- GF_USERS_ALLOW_SIGN_UP=false
volumes:
- grafana_data:/var/lib/grafana
- ./config/grafana/provisioning:/etc/grafana/provisioning:ro
depends_on:
- prometheus
restart: unless-stopped
networks:
- support-agent-network
volumes:
postgres_data:
prometheus_data:
grafana_data:
networks:
support-agent-network:
driver: bridge