-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (39 loc) · 1.12 KB
/
docker-compose.yaml
File metadata and controls
42 lines (39 loc) · 1.12 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
services:
pgvector:
image: pgvector/pgvector:pg18-trixie
container_name: vdb-centor-pgvector
restart: unless-stopped
environment:
POSTGRES_DB: vdb_centor
POSTGRES_USER: pgvector
POSTGRES_PASSWORD: pgvector
# 本地调试时使用
# ports:
# - "${PGVECTOR_PORT:-45132}:5432"
volumes:
- vdb_centor_pgvector_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pgvector -d postgres"]
interval: 5s
timeout: 5s
retries: 10
api:
build:
context: .
dockerfile: Dockerfile
container_name: vdb-centor-api
restart: unless-stopped
depends_on:
pgvector:
condition: service_healthy
ports:
- "${API_PORT:-8001}:8001"
environment:
DEBUG_MODE: "${DEBUG_MODE:-false}"
BIZ_DB_CONNECTION: "postgresql+psycopg://pgvector:pgvector@pgvector:5432/vdb_centor"
VEC_DB_CONNECTION: "postgresql+asyncpg://pgvector:pgvector@pgvector:5432/vdb_centor"
DASHSCOPE_API_KEY: "${DASHSCOPE_API_KEY}"
volumes:
- ./uploaded_files:/app/uploaded_files
volumes:
vdb_centor_pgvector_data: