-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (63 loc) · 1.83 KB
/
docker-compose.yml
File metadata and controls
69 lines (63 loc) · 1.83 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
version: '3.8'
services:
# Dedicated PostgreSQL with pgvector for RAG documentation
postgres-pgvector:
image: pgvector/pgvector:pg14
container_name: central-api-postgres-pgvector
environment:
POSTGRES_DB: devtron_docs
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5433:5432" # Use different port to avoid conflict with existing PostgreSQL
volumes:
- postgres_pgvector_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
central-api:
build:
context: .
dockerfile: Dockerfile
container_name: central-api
ports:
- "8080:8080"
- "8000:8000" # RAG server port
environment:
# PostgreSQL with pgvector configuration (for RAG)
- POSTGRES_HOST=postgres-pgvector
- POSTGRES_PORT=5432
- POSTGRES_DB=devtron_docs
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
# RAG server configuration
- DOCS_RAG_SERVER_URL=http://localhost:8000
- DOCS_REPO_URL=https://github.com/devtron-labs/devtron
- DOCS_PATH=/data/devtron-docs
- EMBEDDING_MODEL=BAAI/bge-large-en-v1.5
- CHUNK_SIZE=1000
- CHUNK_OVERLAP=0
# Optional: AWS Bedrock (if using LLM)
# - AWS_REGION=us-east-1
# - AWS_ACCESS_KEY_ID=your_key
# - AWS_SECRET_ACCESS_KEY=your_secret
depends_on:
postgres-pgvector:
condition: service_healthy
volumes:
- docs_data:/data/devtron-docs
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
volumes:
postgres_pgvector_data:
driver: local
docs_data:
driver: local