-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.11 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
services:
db:
build: ./db
environment:
POSTGRES_USER: kaval
POSTGRES_PASSWORD: kaval
POSTGRES_DB: kaval
ports:
- "5432:5432"
volumes:
- kaval_pgdata:/var/lib/postgresql/data
- ./db/init:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U kaval -d kaval"]
interval: 5s
timeout: 3s
retries: 10
api:
build: ./backend
environment:
DATABASE_URL: postgresql+psycopg2://kaval:kaval@db:5432/kaval
KAVAL_LLM_MODEL: ${KAVAL_LLM_MODEL:-anthropic/claude-sonnet-4-6}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
JWT_SECRET: ${JWT_SECRET:-dev-only-secret}
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
volumes:
- ./backend:/srv/backend
web:
build: ./frontend
ports:
- "5173:5173"
environment:
# vite proxies /api to this inside the compose network
KAVAL_API_PROXY: http://api:8000
depends_on:
- api
volumes:
- ./frontend:/srv/frontend
- /srv/frontend/node_modules
volumes:
kaval_pgdata: