-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (45 loc) · 1.47 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (45 loc) · 1.47 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
services:
postgres:
image: pgvector/pgvector:pg16
container_name: rag-knowledge-postgres
environment:
POSTGRES_DB: ${POSTGRES_DB:-rag_knowledge}
POSTGRES_USER: ${POSTGRES_USER:-rag_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-rag_password}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- rag_knowledge_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-rag_user} -d ${POSTGRES_DB:-rag_knowledge}"]
interval: 10s
timeout: 5s
retries: 10
restart: unless-stopped
app:
build:
context: .
dockerfile: Dockerfile
container_name: rag-knowledge-app
profiles:
- app
depends_on:
postgres:
condition: service_healthy
environment:
SERVER_PORT: 8080
POSTGRES_JDBC_URL: jdbc:postgresql://postgres:5432/${POSTGRES_DB:-rag_knowledge}
POSTGRES_USER: ${POSTGRES_USER:-rag_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-rag_password}
OLLAMA_BASE_URL: ${OLLAMA_BASE_URL:-http://host.docker.internal:11434}
OLLAMA_CHAT_MODEL: ${OLLAMA_CHAT_MODEL:-qwen3.6:35b}
OLLAMA_EMBEDDING_MODEL: ${OLLAMA_EMBEDDING_MODEL:-qwen3-embedding:0.6b}
RAG_STORAGE_LOCAL_ROOT: /app/data/uploads
ports:
- "${SERVER_PORT:-8080}:8080"
volumes:
- rag_knowledge_upload_data:/app/data/uploads
restart: unless-stopped
volumes:
rag_knowledge_postgres_data:
rag_knowledge_upload_data: