Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
158 lines (148 loc) · 3.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
158 lines (148 loc) · 3.42 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: learnpath-postgres
environment:
POSTGRES_DB: learnpath
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
qdrant:
image: qdrant/qdrant:v1.7.4
container_name: learnpath-qdrant
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
environment:
QDRANT__SERVICE__GRPC_PORT: 6334
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6333/health"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: learnpath-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
jaeger:
image: jaegertracing/all-in-one:1.53
container_name: learnpath-jaeger
ports:
- "16686:16686" # UI
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
environment:
- COLLECTOR_OTLP_ENABLED=true
rag-service:
build:
context: ./services/rag
dockerfile: Dockerfile
container_name: learnpath-rag
ports:
- "8001:8001"
env_file:
- .env.docker
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4317
- OTEL_SERVICE_NAME=learnpath-rag
depends_on:
- postgres
- qdrant
- jaeger
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 30s
timeout: 10s
retries: 3
planner-service:
build:
context: ./services/planner
dockerfile: Dockerfile
container_name: learnpath-planner
ports:
- "8002:8002"
env_file:
- .env.docker
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4317
- OTEL_SERVICE_NAME=learnpath-planner
depends_on:
- postgres
- rag-service
- jaeger
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8002/health"]
interval: 30s
timeout: 10s
retries: 3
quiz-service:
build:
context: ./services/quiz
dockerfile: Dockerfile
container_name: learnpath-quiz
ports:
- "8003:8003"
env_file:
- .env.docker
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4317
- OTEL_SERVICE_NAME=learnpath-quiz
depends_on:
- postgres
- jaeger
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8003/health"]
interval: 30s
timeout: 10s
retries: 3
gateway:
build:
context: ./gateway
dockerfile: Dockerfile
container_name: learnpath-gateway
ports:
- "8080:8080"
env_file:
- .env.docker
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4317
- OTEL_SERVICE_NAME=learnpath-gateway
depends_on:
- rag-service
- planner-service
- quiz-service
- jaeger
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
volumes:
postgres_data:
driver: local
qdrant_data:
driver: local
redis_data:
driver: local
networks:
default:
name: learnpath-network