-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
164 lines (153 loc) · 4.44 KB
/
Copy pathdocker-compose.yml
File metadata and controls
164 lines (153 loc) · 4.44 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
159
160
161
162
163
164
services:
# ---------------------------------------------------------------------------
# Core backends — profile: core (started by `make dev`)
# ---------------------------------------------------------------------------
postgres:
image: pgvector/pgvector:pg16
profiles: [core]
environment:
POSTGRES_USER: rag
POSTGRES_PASSWORD: rag
POSTGRES_DB: rag
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./infra/postgres/init.sql:/docker-entrypoint-initdb.d/01_init.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U rag"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
profiles: [core]
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
qdrant:
image: qdrant/qdrant:v1.10.1
profiles: [core]
ports:
- "6333:6333" # HTTP/REST
- "6334:6334" # gRPC
volumes:
- qdrant_data:/qdrant/storage
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:6333/healthz || exit 1"]
interval: 10s
timeout: 5s
retries: 5
# MinIO — S3-compatible object storage for local dev + integration tests
minio:
image: minio/minio:RELEASE.2024-07-16T23-46-41Z
profiles: [core]
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000" # S3 API
- "9001:9001" # Web console
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 10s
timeout: 5s
retries: 5
# MinIO client — creates the default bucket on first start
minio-init:
image: minio/mc:RELEASE.2024-07-11T18-01-28Z
profiles: [core]
depends_on:
minio:
condition: service_started
entrypoint: >
/bin/sh -c "
until mc alias set local http://minio:9000 minioadmin minioadmin; do sleep 2; done;
mc mb --ignore-existing local/rag-dev;
mc mb --ignore-existing local/rag-integration-test;
echo 'MinIO buckets ready.';
"
elasticsearch:
image: elasticsearch:8.14.3
profiles: [core]
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ports:
- "9200:9200"
volumes:
- es_data:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:9200/_cluster/health || exit 1"]
interval: 15s
timeout: 10s
retries: 5
# ---------------------------------------------------------------------------
# Observability stack — profile: observability (started by `make dev-full`)
# Steps 0.7 / 0.7b wire the platform to these endpoints.
# ---------------------------------------------------------------------------
otel-collector:
image: otel/opentelemetry-collector-contrib:0.107.0
profiles: [observability]
command: ["--config=/etc/otel/config.yaml"]
volumes:
- ./infra/otel/otel-collector-config.yaml:/etc/otel/config.yaml:ro
ports:
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
- "8888:8888" # Prometheus metrics (self)
depends_on:
- jaeger
- loki
jaeger:
image: jaegertracing/all-in-one:1.59
profiles: [observability]
environment:
- COLLECTOR_OTLP_ENABLED=true
ports:
- "16686:16686" # UI
- "14268:14268" # collector HTTP
prometheus:
image: prom/prometheus:v2.54.1
profiles: [observability]
volumes:
- ./infra/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- "9090:9090"
grafana:
image: grafana/grafana:11.1.4
profiles: [observability]
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
ports:
- "3001:3000"
volumes:
- grafana_data:/var/lib/grafana
- ./infra/grafana/provisioning:/etc/grafana/provisioning:ro
- ./infra/grafana/dashboards:/var/lib/grafana/dashboards:ro
depends_on:
- prometheus
- loki
- jaeger
loki:
image: grafana/loki:3.1.0
profiles: [observability]
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
volumes:
postgres_data:
qdrant_data:
es_data:
grafana_data:
minio_data: