-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (68 loc) · 2.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (68 loc) · 2.09 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
# PGVectorRAGIndexer Docker Compose Configuration
#
# For production deployment, use the automated scripts:
# Linux/macOS/WSL: curl -fsSL https://raw.githubusercontent.com/valginer0/PGVectorRAGIndexer/main/docker-run.sh | bash
# Windows: See INSTALL_DESKTOP_APP.md
#
# For development, create a .env file with:
# POSTGRES_USER=rag_user
# POSTGRES_PASSWORD=rag_password
# POSTGRES_DB=rag_vector_db
# API_HOST=0.0.0.0
# API_PORT=8000
services:
# PostgreSQL database with pgvector extension
db:
image: pgvector/pgvector:pg16
container_name: vector_rag_db
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER:-rag_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-rag_password}
POSTGRES_DB: ${POSTGRES_DB:-rag_vector_db}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-rag_user} -d ${POSTGRES_DB:-rag_vector_db}"]
interval: 10s
timeout: 5s
retries: 5
networks:
- rag_network
# PGVectorRAGIndexer application
app:
image: ${APP_IMAGE:-ghcr.io/valginer0/pgvectorragindexer:latest}
container_name: vector_rag_app
restart: always
environment:
DB_HOST: db
DB_PORT: 5432
POSTGRES_USER: ${POSTGRES_USER:-rag_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-rag_password}
POSTGRES_DB: ${POSTGRES_DB:-rag_vector_db}
API_HOST: ${API_HOST:-0.0.0.0}
API_PORT: ${API_PORT:-8000}
MAX_FILE_SIZE_MB: ${MAX_FILE_SIZE_MB:-0}
ports:
- "${API_PORT:-8000}:8000"
volumes:
- ./documents:/app/documents
- ./backups:/app/backups
- ./data:/app/data
# LanceDB storage path (named volume overlay to bypass slow 9p bridge on Windows/WSL2)
- lancedb_data:/app/data/lancedb
- model_cache:/root/.cache/huggingface
- ${HOME:-.}/.pgvector-license:/root/.pgvector-license:ro
depends_on:
db:
condition: service_healthy
networks:
- rag_network
volumes:
postgres_data:
model_cache:
lancedb_data:
networks:
rag_network: