-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
45 lines (42 loc) · 1.33 KB
/
Copy pathdocker-compose.test.yml
File metadata and controls
45 lines (42 loc) · 1.33 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
# Isolated test stack. `name:` keeps it in its own compose project so
# `docker compose -f docker-compose.test.yml up` cannot recreate the main
# stack's containers (both files define a `postgres` service).
name: rag-foundry-test
services:
postgres:
image: pgvector/pgvector:pg15
container_name: ingestion-db-test
environment:
POSTGRES_USER: ingestion_user
POSTGRES_PASSWORD: ingestion_pass
POSTGRES_DB: ingestion_test
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ingestion_user -d ingestion_test"]
interval: 5s
timeout: 5s
retries: 5
vector_store_service:
build:
context: .
dockerfile: vector_store_service/Dockerfile
environment:
DATABASE_URL: postgresql://ingestion_user:ingestion_pass@postgres:5432/ingestion_test
depends_on:
postgres:
condition: service_healthy
ingestion_service:
build:
context: .
dockerfile: ingestion_service/Dockerfile
environment:
DATABASE_URL: postgresql://ingestion_user:ingestion_pass@postgres:5432/ingestion_test
LLM_PROVIDER: ollama
OLLAMA_BASE_URL: http://host.docker.internal:11434
PYTHONPATH: /app:/app/src
depends_on:
postgres:
condition: service_healthy
vector_store_service:
condition: service_started