-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.41 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
services:
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_DB: codeassist
POSTGRES_USER: codeassist
POSTGRES_PASSWORD: codeassist
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U codeassist -d codeassist"]
interval: 5s
timeout: 5s
retries: 10
backend:
build:
context: ./backend
environment:
DATABASE_URL: postgresql://codeassist:codeassist@postgres:5432/codeassist
STORAGE_DIR: /data
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
OPENAI_EMBEDDING_MODEL: ${OPENAI_EMBEDDING_MODEL:-text-embedding-3-small}
OPENAI_CHAT_MODEL: ${OPENAI_CHAT_MODEL:-gpt-4o-mini}
OLLAMA_BASE_URL: ${OLLAMA_BASE_URL:-http://host.docker.internal:11434}
LLAMA_CHAT_MODEL: ${LLAMA_CHAT_MODEL:-llama3.1}
OLLAMA_TIMEOUT_SECONDS: ${OLLAMA_TIMEOUT_SECONDS:-300}
ports:
- "8000:8000"
volumes:
- backend-storage:/data
depends_on:
postgres:
condition: service_healthy
frontend:
build:
context: ./frontend
args:
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL:-http://localhost:8000}
environment:
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL:-http://localhost:8000}
ports:
- "3000:80"
depends_on:
- backend
volumes:
postgres-data:
backend-storage: