-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.demo.yml
More file actions
62 lines (58 loc) · 1.69 KB
/
Copy pathdocker-compose.demo.yml
File metadata and controls
62 lines (58 loc) · 1.69 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
# =============================================================================
# PGVectorRAGIndexer — Demo Instance Docker Compose
# =============================================================================
#
# Runs the read-only demo with a pre-seeded database.
#
# Usage:
# docker compose -f docker-compose.demo.yml up -d
#
# Auto-reset: use a cron job to restart daily:
# 0 4 * * * cd /path/to/project && docker compose -f docker-compose.demo.yml down -v && docker compose -f docker-compose.demo.yml up -d
# =============================================================================
services:
db:
image: pgvector/pgvector:pg16
container_name: demo_rag_db
restart: always
environment:
POSTGRES_USER: rag_user
POSTGRES_PASSWORD: rag_demo_password
POSTGRES_DB: rag_vector_db
volumes:
- demo_postgres_data:/var/lib/postgresql/data
- ./init-db.sql:/docker-entrypoint-initdb.d/init-db.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U rag_user -d rag_vector_db"]
interval: 10s
timeout: 5s
retries: 5
networks:
- demo_network
app:
build:
context: .
dockerfile: Dockerfile.demo
container_name: demo_rag_app
restart: always
environment:
DB_HOST: db
DB_PORT: 5432
POSTGRES_USER: rag_user
POSTGRES_PASSWORD: rag_demo_password
POSTGRES_DB: rag_vector_db
DEMO_MODE: "1"
API_REQUIRE_AUTH: "false"
ports:
- "10000:10000"
depends_on:
db:
condition: service_healthy
networks:
- demo_network
command: ["bash", "scripts/demo-entrypoint.sh"]
volumes:
demo_postgres_data:
networks:
demo_network:
driver: bridge