-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
96 lines (89 loc) · 2.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
96 lines (89 loc) · 2.27 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
# Local development only: this is not a production deployment manifest.
services:
ollama:
image: ollama/ollama
ports:
- "127.0.0.1:11434:11434"
volumes:
- ollama_data:/root/.ollama
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]
interval: 10s
timeout: 5s
retries: 12
start_period: 30s
restart: unless-stopped
ollama-init:
image: ollama/ollama
depends_on:
ollama:
condition: service_healthy
volumes:
- ollama_data:/root/.ollama
entrypoint: ["ollama", "pull", "qwen2.5:7b"]
environment:
- OLLAMA_HOST=http://ollama:11434
restart: "no"
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: rag_assistant
POSTGRES_USER: rag
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-rag_dev_password}
ports:
- "127.0.0.1:5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U rag -d rag_assistant"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- "127.0.0.1:6379:6379"
volumes:
- redisdata:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
jaeger:
image: jaegertracing/all-in-one:1.59
restart: unless-stopped
ports:
- "127.0.0.1:16686:16686"
- "127.0.0.1:4317:4317"
- "127.0.0.1:4318:4318"
app:
build: .
ports:
- "127.0.0.1:8000:8000"
env_file:
- .env
environment:
- RAG_ENV=development
- OLLAMA_BASE_URL=http://ollama:11434
- DATABASE_URL=postgresql://rag:${POSTGRES_PASSWORD:-rag_dev_password}@postgres:5432/rag_assistant
- REDIS_URL=redis://redis:6379/0
- OTEL_ENABLED=${OTEL_ENABLED:-false}
- OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4317
- OTEL_SERVICE_NAME=rag-support-assistant
volumes:
- ./data:/app/data
depends_on:
ollama-init:
condition: service_completed_successfully
postgres:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
volumes:
ollama_data:
pgdata:
redisdata: