-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (44 loc) · 1.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (44 loc) · 1.28 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
services:
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_DB: audit_grade_rag
POSTGRES_USER: audit_grade_rag
POSTGRES_PASSWORD: audit_grade_rag
ports:
- "127.0.0.1:5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U audit_grade_rag -d audit_grade_rag"]
interval: 5s
timeout: 5s
retries: 20
audit-grade-rag:
build: .
depends_on:
postgres:
condition: service_healthy
environment:
PORT: "3000"
DATABASE_URL: "postgres://audit_grade_rag:audit_grade_rag@postgres:5432/audit_grade_rag"
BGE_M3_EMBEDDING_ENDPOINT: "${BGE_M3_EMBEDDING_ENDPOINT:?BGE_M3_EMBEDDING_ENDPOINT is required}"
BGE_M3_API_KEY: "${BGE_M3_API_KEY:-}"
AUDIT_LEDGER_PATH: "/var/lib/audit-grade-rag/audit.sqlite"
CORPUS_DIR: "examples/eu-ai-act"
ports:
- "127.0.0.1:3000:3000"
volumes:
- audit-ledger:/var/lib/audit-grade-rag
healthcheck:
test:
[
"CMD-SHELL",
"node -e \"fetch('http://127.0.0.1:3000/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\"",
]
interval: 10s
timeout: 5s
retries: 12
volumes:
postgres-data:
audit-ledger: