-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.58 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
services:
db:
image: pgvector/pgvector:pg16
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 10
backend:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
GOOGLE_API_KEY: ${GOOGLE_API_KEY}
GOOGLE_CHAT_MODEL: ${GOOGLE_CHAT_MODEL:-gemini-2.5-flash}
GOOGLE_EVAL_MODEL: ${GOOGLE_EVAL_MODEL:-gemini-2.5-flash}
GOOGLE_EMBEDDING_MODEL: ${GOOGLE_EMBEDDING_MODEL:-models/gemini-embedding-001}
EMBEDDING_DIM: ${EMBEDDING_DIM:-3072}
TRANSCRIPT_CHUNK_SIZE: ${TRANSCRIPT_CHUNK_SIZE:-1100}
TRANSCRIPT_CHUNK_OVERLAP: ${TRANSCRIPT_CHUNK_OVERLAP:-180}
DEFAULT_TOP_K: ${DEFAULT_TOP_K:-5}
CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:3000,http://127.0.0.1:3000}
ports:
- "${BACKEND_PORT:-8000}:8000"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:8000}
restart: unless-stopped
depends_on:
- backend
ports:
- "${FRONTEND_PORT:-3000}:3000"
volumes:
pgdata: